reed@google.com [Mon, 1 Aug 2011 20:53:19 +0000 (20:53 +0000)]
add roundOut()
git-svn-id: http://skia.googlecode.com/svn/trunk@2019
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 1 Aug 2011 20:49:45 +0000 (20:49 +0000)]
deprecate SkScalarFloor, SkScalarCeil, SkScalarRound
Should instead use the explicit version that returns either a scalar or int
e.g.
SkScalarRoundToInt
SkScalarROundToScalar
git-svn-id: http://skia.googlecode.com/svn/trunk@2018
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Mon, 1 Aug 2011 20:41:53 +0000 (20:41 +0000)]
Add Commit to SkWIStream.
http://codereview.appspot.com/
4809069/
git-svn-id: http://skia.googlecode.com/svn/trunk@2017
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Mon, 1 Aug 2011 20:18:45 +0000 (20:18 +0000)]
Make WIC encoder lock the bitmap pixels.
http://codereview.appspot.com/
4832045/
git-svn-id: http://skia.googlecode.com/svn/trunk@2016
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Mon, 1 Aug 2011 19:37:43 +0000 (19:37 +0000)]
Windows image decoder should handle all bitmap formats.
http://codereview.appspot.com/
4801070/
git-svn-id: http://skia.googlecode.com/svn/trunk@2015
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 1 Aug 2011 17:35:01 +0000 (17:35 +0000)]
Fix comment alignment
git-svn-id: http://skia.googlecode.com/svn/trunk@2014
2bbb7eff-a529-9590-31e7-
b0007b416f81
yangsu@google.com [Mon, 1 Aug 2011 17:27:33 +0000 (17:27 +0000)]
Revised SkOSMenu
http://codereview.appspot.com/
4827042/
git-svn-id: http://skia.googlecode.com/svn/trunk@2013
2bbb7eff-a529-9590-31e7-
b0007b416f81
yangsu@google.com [Mon, 1 Aug 2011 17:07:12 +0000 (17:07 +0000)]
Cocoa SampleApp files
http://codereview.appspot.com/
4843041/
http://codereview.appspot.com/
4832044/
http://codereview.appspot.com/
4826061/
git-svn-id: http://skia.googlecode.com/svn/trunk@2012
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 1 Aug 2011 15:51:05 +0000 (15:51 +0000)]
Remove unnecessary dirty clip flag in GrGpu, remove getUsableStencilBits()
Review URL: http://codereview.appspot.com/
4828050/
git-svn-id: http://skia.googlecode.com/svn/trunk@2011
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Mon, 1 Aug 2011 15:38:07 +0000 (15:38 +0000)]
whitespace commit to trigger buildbot
git-svn-id: http://skia.googlecode.com/svn/trunk@2010
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 1 Aug 2011 15:02:03 +0000 (15:02 +0000)]
Add trunk/out to svn:ignore list
Review URL: http://codereview.appspot.com/
4841042/
git-svn-id: http://skia.googlecode.com/svn/trunk@2005
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 1 Aug 2011 13:36:00 +0000 (13:36 +0000)]
Split texture upload out from onCreateTexture
Review URL: http://codereview.appspot.com/
4809060/
git-svn-id: http://skia.googlecode.com/svn/trunk@2003
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 1 Aug 2011 13:26:01 +0000 (13:26 +0000)]
Fix bug in SkMatrix::invert where typemask is not set on inverse when a matrix is inverted into itself.
Review URL: http://codereview.appspot.com/
4819050/
git-svn-id: http://skia.googlecode.com/svn/trunk@2002
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 1 Aug 2011 12:45:35 +0000 (12:45 +0000)]
update dox for LCD text
git-svn-id: http://skia.googlecode.com/svn/trunk@2001
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Fri, 29 Jul 2011 21:05:40 +0000 (21:05 +0000)]
another whitespace commit to trigger buildbot
git-svn-id: http://skia.googlecode.com/svn/trunk@2000
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Fri, 29 Jul 2011 20:48:47 +0000 (20:48 +0000)]
whitespace commit to trigger buildbot
git-svn-id: http://skia.googlecode.com/svn/trunk@1998
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 29 Jul 2011 20:29:05 +0000 (20:29 +0000)]
cleanup GrGLTexture / GrGLRenderTarget cons. Make GrRenderTarget aware of its msaa sample count.
Review URL: http://codereview.appspot.com/
4833045/
git-svn-id: http://skia.googlecode.com/svn/trunk@1996
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 29 Jul 2011 15:13:20 +0000 (15:13 +0000)]
move render target decls / defs to their own headers / srcs
Review URL: http://codereview.appspot.com/
4806058/
git-svn-id: http://skia.googlecode.com/svn/trunk@1995
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Fri, 29 Jul 2011 13:46:56 +0000 (13:46 +0000)]
disable optimization in Mac debug build
git-svn-id: http://skia.googlecode.com/svn/trunk@1994
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Fri, 29 Jul 2011 13:44:30 +0000 (13:44 +0000)]
More variable initializations and curly braces to avoid Linux compiler
warnings.
git-svn-id: http://skia.googlecode.com/svn/trunk@1993
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 29 Jul 2011 13:39:53 +0000 (13:39 +0000)]
Move GL headers out of public include dir
Review URL: http://codereview.appspot.com/
4837041/
git-svn-id: http://skia.googlecode.com/svn/trunk@1992
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Fri, 29 Jul 2011 13:20:06 +0000 (13:20 +0000)]
Eliminate Linux compile warnings throughout animator/ with variable
initializations, missing braces.
git-svn-id: http://skia.googlecode.com/svn/trunk@1991
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Thu, 28 Jul 2011 21:10:29 +0000 (21:10 +0000)]
Fix initialization of variables; eliminates warnings on Linux.
git-svn-id: http://skia.googlecode.com/svn/trunk@1990
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Thu, 28 Jul 2011 21:06:40 +0000 (21:06 +0000)]
Break onEncode() into two functions to avoid clobbering variables with
setjmp/longjmp; gets rid of warnings on Linux.
Over-the-shoulder review by reed@.
git-svn-id: http://skia.googlecode.com/svn/trunk@1989
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 28 Jul 2011 20:36:32 +0000 (20:36 +0000)]
balance destructor's CFRelease with a CFRetain when we get the cgfont
git-svn-id: http://skia.googlecode.com/svn/trunk@1988
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@google.com [Thu, 28 Jul 2011 20:10:09 +0000 (20:10 +0000)]
Fixing the ignore transform flag in Ganesh with mask filter and drawBitmap
TEST=SampleApp/Texture Domain
BUG=http://code.google.com/p/skia/issues/detail?id=335
REVIEW=http://codereview.appspot.com/
4803052/
git-svn-id: http://skia.googlecode.com/svn/trunk@1987
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 28 Jul 2011 19:29:02 +0000 (19:29 +0000)]
whitespace commit to trigger buildbot
git-svn-id: http://skia.googlecode.com/svn/trunk@1986
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Thu, 28 Jul 2011 16:51:20 +0000 (16:51 +0000)]
Include <new> required for placement new in SkTLazy.
Also, add SkTLazy to gyp and remove old includes.
git-svn-id: http://skia.googlecode.com/svn/trunk@1984
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 28 Jul 2011 14:29:58 +0000 (14:29 +0000)]
Script to automatically update copyright notices in C/C++ source code.
Created to implement http://codereview.appspot.com/
4816058/ ('Automatic update of all copyright notices to reflect new license terms.')
We can also use this to periodically clean up our code headers.
Review URL: http://codereview.appspot.com/
4800055
git-svn-id: http://skia.googlecode.com/svn/trunk@1983
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 28 Jul 2011 14:26:00 +0000 (14:26 +0000)]
update of all copyright notices to reflect new license terms.
I have manually examined all of these diffs and restored a few files that
seem to require manual adjustment.
The following files still need to be modified manually, in a separate CL:
android_sample/SampleApp/AndroidManifest.xml
android_sample/SampleApp/res/layout/layout.xml
android_sample/SampleApp/res/menu/sample.xml
android_sample/SampleApp/res/values/strings.xml
android_sample/SampleApp/src/com/skia/sampleapp/SampleApp.java
android_sample/SampleApp/src/com/skia/sampleapp/SampleView.java
experimental/CiCarbonSampleMain.c
experimental/CocoaDebugger/main.m
experimental/FileReaderApp/main.m
experimental/SimpleCocoaApp/main.m
experimental/iOSSampleApp/Shared/SkAlertPrompt.h
experimental/iOSSampleApp/Shared/SkAlertPrompt.m
experimental/iOSSampleApp/SkiOSSampleApp-Base.xcconfig
experimental/iOSSampleApp/SkiOSSampleApp-Debug.xcconfig
experimental/iOSSampleApp/SkiOSSampleApp-Release.xcconfig
gpu/src/android/GrGLDefaultInterface_android.cpp
gyp/common.gypi
gyp_skia
include/ports/SkHarfBuzzFont.h
include/views/SkOSWindow_wxwidgets.h
make.bat
make.py
src/opts/memset.arm.S
src/opts/memset16_neon.S
src/opts/memset32_neon.S
src/opts/opts_check_arm.cpp
src/ports/SkDebug_brew.cpp
src/ports/SkMemory_brew.cpp
src/ports/SkOSFile_brew.cpp
src/ports/SkXMLParser_empty.cpp
src/utils/ios/SkImageDecoder_iOS.mm
src/utils/ios/SkOSFile_iOS.mm
src/utils/ios/SkStream_NSData.mm
tests/FillPathTest.cpp
Review URL: http://codereview.appspot.com/
4816058
git-svn-id: http://skia.googlecode.com/svn/trunk@1982
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 28 Jul 2011 14:24:55 +0000 (14:24 +0000)]
Manually update copyright notices in files that defied the automated process
used in http://codereview.appspot.com/
4816058/ ('Automatic update of all copyright notices to reflect new license terms.')
Note that the following files have been left alone, because they name
copyright holders outside of Google. Please let me know if we need to update
these files:
experimental/CiCarbonSampleMain.c
src/opts/memset16_neon.S
src/opts/memset32_neon.S
src/opts/opts_check_arm.cpp
src/ports/SkDebug_brew.cpp
src/ports/SkMemory_brew.cpp
src/ports/SkOSFile_brew.cpp
Review URL: http://codereview.appspot.com/
4806054
git-svn-id: http://skia.googlecode.com/svn/trunk@1981
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 28 Jul 2011 13:47:12 +0000 (13:47 +0000)]
delete dead file
git-svn-id: http://skia.googlecode.com/svn/trunk@1980
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@google.com [Thu, 28 Jul 2011 13:34:31 +0000 (13:34 +0000)]
This new test provides a test case for
http://code.google.com/p/skia/issues/detail?id=332
REVIEW=http://codereview.appspot.com/
4808058/
git-svn-id: http://skia.googlecode.com/svn/trunk@1979
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Wed, 27 Jul 2011 20:59:55 +0000 (20:59 +0000)]
[PDF] Improve efficiency of glyph id collection during font subsetting.
Patch from Arthur Hsu, original CL: http://codereview.appspot.com/
4828044/
Review URL: http://codereview.appspot.com/
4798057
git-svn-id: http://skia.googlecode.com/svn/trunk@1978
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Wed, 27 Jul 2011 18:38:11 +0000 (18:38 +0000)]
[PDF] Fix mem leak in font subsetting.
Original CL: http://codereview.appspot.com/
4809053/
Review URL: http://codereview.appspot.com/
4825052
git-svn-id: http://skia.googlecode.com/svn/trunk@1977
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 27 Jul 2011 18:31:43 +0000 (18:31 +0000)]
include <new> for SkTLazy, since windows seems to need it.
git-svn-id: http://skia.googlecode.com/svn/trunk@1976
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 27 Jul 2011 18:28:18 +0000 (18:28 +0000)]
new baseline now that we're using the built-in quad->cubic converter
git-svn-id: http://skia.googlecode.com/svn/trunk@1975
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 27 Jul 2011 18:25:57 +0000 (18:25 +0000)]
don't modify a const paint
git-svn-id: http://skia.googlecode.com/svn/trunk@1974
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 27 Jul 2011 18:24:25 +0000 (18:24 +0000)]
use SkConvertQuadToCubic()
git-svn-id: http://skia.googlecode.com/svn/trunk@1973
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 27 Jul 2011 18:21:37 +0000 (18:21 +0000)]
add simple test for writepixels
git-svn-id: http://skia.googlecode.com/svn/trunk@1972
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 27 Jul 2011 14:47:25 +0000 (14:47 +0000)]
whitespace commit to trigger buildbot
git-svn-id: http://skia.googlecode.com/svn/trunk@1971
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 27 Jul 2011 14:17:35 +0000 (14:17 +0000)]
re-enable "core" build target lost in r1968
git-svn-id: http://skia.googlecode.com/svn/trunk@1970
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 27 Jul 2011 14:16:03 +0000 (14:16 +0000)]
use safeunref on typefaces, since Deserialize might return NULL.
git-svn-id: http://skia.googlecode.com/svn/trunk@1969
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 27 Jul 2011 14:06:25 +0000 (14:06 +0000)]
Properly handle parallel make ("make -j"), and only rerun gyp if necessary.
This should completely resolve http://code.google.com/p/skia/issues/detail?id=330 ('building multiple targets in parallel fails on Linux')
This should resolve http://code.google.com/p/skia/issues/detail?id=313 ('toplevel makefile always reruns gyp_skia') for Linux, but not Mac. (See details in comments within the file)
Review URL: http://codereview.appspot.com/
4827043
git-svn-id: http://skia.googlecode.com/svn/trunk@1968
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 27 Jul 2011 13:54:36 +0000 (13:54 +0000)]
add test for SkConvertQuadToCubic
git-svn-id: http://skia.googlecode.com/svn/trunk@1967
2bbb7eff-a529-9590-31e7-
b0007b416f81
ctguil@chromium.org [Wed, 27 Jul 2011 00:10:51 +0000 (00:10 +0000)]
Cleanup from r1843 based on revision comments.
Review URL: http://codereview.appspot.com/
4794044
git-svn-id: http://skia.googlecode.com/svn/trunk@1966
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 26 Jul 2011 20:45:30 +0000 (20:45 +0000)]
Make GrTextureCache into a generic GrResource cache. Also some GrContext texture interface cleanup.
http://codereview.appspot.com/
4815055/
git-svn-id: http://skia.googlecode.com/svn/trunk@1965
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Tue, 26 Jul 2011 19:54:45 +0000 (19:54 +0000)]
Add functionality for isRect() to SkPath.
http://codereview.appspot.com/
4807052/
M src/core/SkPath.cpp
M tests/PathTest.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@1964
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 26 Jul 2011 19:51:50 +0000 (19:51 +0000)]
remove this, since diff Win machines differ on LCD settings
git-svn-id: http://skia.googlecode.com/svn/trunk@1963
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 26 Jul 2011 19:37:13 +0000 (19:37 +0000)]
rebaseline given new AA text generation in SkFontHost_win.cpp
git-svn-id: http://skia.googlecode.com/svn/trunk@1961
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 26 Jul 2011 19:33:08 +0000 (19:33 +0000)]
GetGlyphOutline can return clipped results :( so we now draw offscreen
instead, as we always did for BW and lcd. This means sometimes we get
BG results when we requested AA, since GDI can decide (based on user-settings)
that we're too small for AA :(
git-svn-id: http://skia.googlecode.com/svn/trunk@1960
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 26 Jul 2011 12:32:36 +0000 (12:32 +0000)]
Reapply r1951.
git-svn-id: http://skia.googlecode.com/svn/trunk@1959
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Tue, 26 Jul 2011 03:44:05 +0000 (03:44 +0000)]
Revert "Add sizeInBytes to GrResource, make GrRenderTarget aware of its pixel config (r1951)"
Temporarily revert this change in order to roll other changes into Chrome.
TBR=bsalomon@google.com
Review URL: http://codereview.appspot.com/
4807051
git-svn-id: http://skia.googlecode.com/svn/trunk@1958
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Tue, 26 Jul 2011 02:11:41 +0000 (02:11 +0000)]
[PDF] Add font subsetting using the sfntly library.
Patch from Arthur Hsu, original CL: http://codereview.chromium.org/
7513003/
Review URL: http://codereview.appspot.com/
4828041
git-svn-id: http://skia.googlecode.com/svn/trunk@1957
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Mon, 25 Jul 2011 22:34:12 +0000 (22:34 +0000)]
[PDF] Refactor SkPDFFont to enable font/cmap subsetting.
Patch from Arthur Hsu, original CL: http://codereview.appspot.com/
4633050/
Committed: http://code.google.com/p/skia/source/detail?r=1943
Reverted: http://code.google.com/p/skia/source/detail?r=1944
Review URL: http://codereview.appspot.com/
4811049
git-svn-id: http://skia.googlecode.com/svn/trunk@1956
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Mon, 25 Jul 2011 22:22:25 +0000 (22:22 +0000)]
[PDF] Fix bug in catalog substitution.
Review URL: http://codereview.appspot.com/
4816051
git-svn-id: http://skia.googlecode.com/svn/trunk@1955
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 25 Jul 2011 21:16:22 +0000 (21:16 +0000)]
don't modify const SkDraw, since multiple threads may be watching it...
git-svn-id: http://skia.googlecode.com/svn/trunk@1954
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 25 Jul 2011 19:41:22 +0000 (19:41 +0000)]
don/t modify const paint, since it could be used in different threads
git-svn-id: http://skia.googlecode.com/svn/trunk@1953
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 25 Jul 2011 17:41:12 +0000 (17:41 +0000)]
Add sizeInBytes to GrResource, make GrRenderTarget aware of its pixel config
Review URL: http://codereview.appspot.com/
4802058/
git-svn-id: http://skia.googlecode.com/svn/trunk@1951
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Mon, 25 Jul 2011 16:56:37 +0000 (16:56 +0000)]
Slightly improve visuals of bitmapscroll test in gm
git-svn-id: http://skia.googlecode.com/svn/trunk@1949
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Mon, 25 Jul 2011 16:27:59 +0000 (16:27 +0000)]
Exit SkBitmap::scrollRect() early if width <= 0
As suggested in email from saintlou@google.com
Review URL: http://codereview.appspot.com/
4806047
git-svn-id: http://skia.googlecode.com/svn/trunk@1948
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Mon, 25 Jul 2011 15:47:33 +0000 (15:47 +0000)]
Documentation only: add warning to SkCanvas::writePixels() that this operation
will not be recorded by SkPicture.
Review URL: http://codereview.appspot.com/
4815054
git-svn-id: http://skia.googlecode.com/svn/trunk@1947
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 25 Jul 2011 14:30:54 +0000 (14:30 +0000)]
add --match to the help text
git-svn-id: http://skia.googlecode.com/svn/trunk@1946
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 25 Jul 2011 14:28:57 +0000 (14:28 +0000)]
reenable rotated freetype fix, but behind #ifndef SK_IGNORE_ROTATED_FREETYPE_FIX,
so chrome can disable it for now.
add --match foo to gm/ so you can run just tests that substring match your pattern (foo)
git-svn-id: http://skia.googlecode.com/svn/trunk@1945
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Sat, 23 Jul 2011 21:13:30 +0000 (21:13 +0000)]
Revert "[PDF] Refactor SkPDFFont to enable font/cmap subsetting."
The PDF xref table is corrupt with this change. Revert until we figure it out.
Review URL: http://codereview.appspot.com/
4803049
git-svn-id: http://skia.googlecode.com/svn/trunk@1944
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Sat, 23 Jul 2011 20:22:53 +0000 (20:22 +0000)]
[PDF] Refactor SkPDFFont to enable font/cmap subsetting.
Patch from Arthur Hsu, original CL: http://codereview.appspot.com/
4633050/
Review URL: http://codereview.appspot.com/
4811049
git-svn-id: http://skia.googlecode.com/svn/trunk@1943
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 22 Jul 2011 17:56:19 +0000 (17:56 +0000)]
Temporary rollback of r1924 to unblock DEPS roll
Review URL: http://codereview.appspot.com/
4817046/
git-svn-id: http://skia.googlecode.com/svn/trunk@1942
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Fri, 22 Jul 2011 15:31:14 +0000 (15:31 +0000)]
Improve GPU blur performance by clearing only when necessary. This gives a
1.8X speedup on the Blurs sample, and 2.3X on the BigBlur sample.
We don't need to clear while downsampling, since each step reads only the pixels
written in the previous step. We can avoid destination clears before
convolution by disabling blending. We also don't need to clear when upsampling,
since the upsample step also only reads pixels written by the convolution. The
only clears we then need to do are on each side of the srcRect used for
convolution, and a 1-pixel border for bilinear upsampling. Since our srcRect is
always offset to (0, 0), we only need to clear on the right and bottom.
Review URL: http://codereview.appspot.com/
4803048/
git-svn-id: http://skia.googlecode.com/svn/trunk@1941
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Fri, 22 Jul 2011 14:41:26 +0000 (14:41 +0000)]
Add debug symbols to Windows static libraries
As requested in http://code.google.com/p/skia/issues/detail?id=320
Review URL: http://codereview.appspot.com/
4805050
git-svn-id: http://skia.googlecode.com/svn/trunk@1940
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Fri, 22 Jul 2011 01:48:55 +0000 (01:48 +0000)]
[PDF] fix off by one in setPage.
TBR=ctguil@chromium.org
Review URL: http://codereview.appspot.com/
4807045
git-svn-id: http://skia.googlecode.com/svn/trunk@1939
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Thu, 21 Jul 2011 22:16:05 +0000 (22:16 +0000)]
Revert r1937 while I try to figure out the GM failures.
(Unreviewed; build fix).
git-svn-id: http://skia.googlecode.com/svn/trunk@1938
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Thu, 21 Jul 2011 22:07:53 +0000 (22:07 +0000)]
Improve GPU blur speed by clearing only when necessary. This gives a
1.8X speedup on the Blurs sample, and 2.3X on the BigBlur sample.
We don't need to clear while downsampling, since each step reads only the pixels
written in the previous step. We can avoid destination clears before
convolution by disabling blending. We also don't need to clear when upsampling,
since the upsample step also only reads pixels written by the convolution. The
only clears we then need to do are on each side of the srcRect used for
convolution. Since our srcRect is always offset to (0, 0), we only need to
clear on the right and bottom.
Review URL: http://codereview.appspot.com/
4803048/
git-svn-id: http://skia.googlecode.com/svn/trunk@1937
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 21 Jul 2011 18:00:46 +0000 (18:00 +0000)]
remove forward declaration and reference to extinct SkDeviceFactory
git-svn-id: http://skia.googlecode.com/svn/trunk@1931
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 21 Jul 2011 16:24:52 +0000 (16:24 +0000)]
Add gm/base-win-fixed baseline images
git-svn-id: http://skia.googlecode.com/svn/trunk@1930
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 21 Jul 2011 15:50:33 +0000 (15:50 +0000)]
fix gradients_degenerate test case for SKIA_SCALAR_IS_FIXED
http://codereview.appspot.com/
4811046/
git-svn-id: http://skia.googlecode.com/svn/trunk@1928
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 21 Jul 2011 15:11:50 +0000 (15:11 +0000)]
rebaseline with unhinted rotated text in freetype
git-svn-id: http://skia.googlecode.com/svn/trunk@1927
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 21 Jul 2011 14:34:03 +0000 (14:34 +0000)]
rebaseline now that freetype is unhinted when rotated
git-svn-id: http://skia.googlecode.com/svn/trunk@1926
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 21 Jul 2011 14:18:48 +0000 (14:18 +0000)]
In experimental/SkSetPoly3To3_A.cpp, rename div() to divide() to resolve namespace collision in Windows.
git-svn-id: http://skia.googlecode.com/svn/trunk@1925
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Thu, 21 Jul 2011 14:12:36 +0000 (14:12 +0000)]
disable hinting when rotated, since it looks bad
we do the same thing on windows (mac seems to handle rotation fine)
git-svn-id: http://skia.googlecode.com/svn/trunk@1924
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 21 Jul 2011 13:56:34 +0000 (13:56 +0000)]
Fix SkFlate.cpp when SK_ZLIB_INCLUDE is not #defined.
This was failing for Windows builds since r1911.
git-svn-id: http://skia.googlecode.com/svn/trunk@1923
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Wed, 20 Jul 2011 21:47:53 +0000 (21:47 +0000)]
whitespace change
git-svn-id: http://skia.googlecode.com/svn/trunk@1919
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 20 Jul 2011 19:55:42 +0000 (19:55 +0000)]
have == always return bool, never int
git-svn-id: http://skia.googlecode.com/svn/trunk@1915
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 20 Jul 2011 18:43:19 +0000 (18:43 +0000)]
replace SkRefPtr for parameters with simple pointers
git-svn-id: http://skia.googlecode.com/svn/trunk@1913
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Wed, 20 Jul 2011 18:39:20 +0000 (18:39 +0000)]
[PDF] Use insert and append helpers for POD data.
BUG=251
Review URL: http://codereview.appspot.com/
4815044
git-svn-id: http://skia.googlecode.com/svn/trunk@1912
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Wed, 20 Jul 2011 17:39:01 +0000 (17:39 +0000)]
[PDF] Make stream compression optional on a per device basis.
There are a lot of small pieces to make this change work:
- SkPDFDocument (and SkPDFCatalog) take flags to disable compression (and font embedding - not implemented yet, can disable font subsetting for now).
- SkPDFStream now defers compression until the size/emit step.
- Classes that *had* a stream (because they didn't know the stream size at construction time) now *are* streams to make the substitution work correctly.
- The SkPDFShader implementation got pulled apart into two classes, one that is a SkPDFDict, and one that is a SkPDFStream (making the common ancestor SkPDFObject).
- Added helper methods in SkPDFObject for children that have simple resource lists.
- Added an iterator to SkPDFDict so that a substitute SkPDFStream can get a copy of the stream dictionary.
- Change SkPDFDocument to have a pointer to an SkPDFCatalog to remove a new circular header reference.
Review URL: http://codereview.appspot.com/
4700045
git-svn-id: http://skia.googlecode.com/svn/trunk@1911
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 20 Jul 2011 17:20:28 +0000 (17:20 +0000)]
fix Capitalization of static methods
git-svn-id: http://skia.googlecode.com/svn/trunk@1910
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 20 Jul 2011 12:14:33 +0000 (12:14 +0000)]
helpers for append and insert when the value is a POD.
reduces code-size and perf: fewer refs/unrefs
git-svn-id: http://skia.googlecode.com/svn/trunk@1909
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Wed, 20 Jul 2011 00:33:53 +0000 (00:33 +0000)]
[PDF] Fix substitute resources size calculation.
Review URL: http://codereview.appspot.com/
4803041
git-svn-id: http://skia.googlecode.com/svn/trunk@1908
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Tue, 19 Jul 2011 21:22:13 +0000 (21:22 +0000)]
Fix GPU blur cacheing bug. Sometimes, the texture cache serves us textures of
different sizes for srcTexture and dstTexture (this is fair; they're supposed
to be approximate). Code was assuming otherwise while downsampling; fix is to
reapply the scale on each downsample. (Yes, I could cache these reciprocals
if and when they prove to be a hot spot).
Also, use setIDiv(w,h) everywhere for conciseness.
Review URL: http://codereview.appspot.com/
4798041/
git-svn-id: http://skia.googlecode.com/svn/trunk@1907
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 19 Jul 2011 19:20:30 +0000 (19:20 +0000)]
remove these for now, since each WIN machine can have different lcd
settings. can be fixed if we programmatically jam in some setting.
If these are gone, gm will complain, but will not return failure to the
bot.
git-svn-id: http://skia.googlecode.com/svn/trunk@1906
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 19 Jul 2011 19:18:21 +0000 (19:18 +0000)]
rebaseline with new gpu-based blurricator
git-svn-id: http://skia.googlecode.com/svn/trunk@1905
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 19 Jul 2011 19:08:33 +0000 (19:08 +0000)]
export function to return a typeface's LOGFONT
git-svn-id: http://skia.googlecode.com/svn/trunk@1903
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 19 Jul 2011 18:06:42 +0000 (18:06 +0000)]
new baselines now that we're executing the blurs directly on the gpu
git-svn-id: http://skia.googlecode.com/svn/trunk@1902
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Tue, 19 Jul 2011 16:40:58 +0000 (16:40 +0000)]
Enable the GPU-based blur by default in Skia, and provide a #define to disable
it (SK_DISABLE_GPU_BLUR).
Note: this change will break some the GM test results. I've attempted to
rebaseline MacPro float results; more to come.
Review URL: http://codereview.appspot.com/
4784043/
git-svn-id: http://skia.googlecode.com/svn/trunk@1901
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 19 Jul 2011 15:46:40 +0000 (15:46 +0000)]
eliminate unneeded refs/unrefs
git-svn-id: http://skia.googlecode.com/svn/trunk@1900
2bbb7eff-a529-9590-31e7-
b0007b416f81
tomhudson@google.com [Tue, 19 Jul 2011 15:44:00 +0000 (15:44 +0000)]
Instead of turning clipping off during AA, clip to the offscreen tile when
we're writing to it, then restore the onscreen clip when copying it back
to screen. Speeds up rendering of web pages with paths >> tile size.
git-svn-id: http://skia.googlecode.com/svn/trunk@1899
2bbb7eff-a529-9590-31e7-
b0007b416f81
yangsu@google.com [Tue, 19 Jul 2011 15:17:44 +0000 (15:17 +0000)]
iOSSampleApp can now switch backends during runtime
git-svn-id: http://skia.googlecode.com/svn/trunk@1897
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Tue, 19 Jul 2011 13:13:35 +0000 (13:13 +0000)]
whitespace commit to trigger buildbot
git-svn-id: http://skia.googlecode.com/svn/trunk@1896
2bbb7eff-a529-9590-31e7-
b0007b416f81
mike@reedtribe.org [Tue, 19 Jul 2011 01:28:17 +0000 (01:28 +0000)]
Remove dead edgebuilding code
git-svn-id: http://skia.googlecode.com/svn/trunk@1893
2bbb7eff-a529-9590-31e7-
b0007b416f81
vandebo@chromium.org [Mon, 18 Jul 2011 23:13:19 +0000 (23:13 +0000)]
[PDF] Add setPage method to SkPDFDocument.
BUG=312
Review URL: http://codereview.appspot.com/
4763047
git-svn-id: http://skia.googlecode.com/svn/trunk@1892
2bbb7eff-a529-9590-31e7-
b0007b416f81