platform/upstream/libSkiaSharp.git
13 years agoremove unneeded asserts (which may fail from imprecise blits into the bitmap, but
reed@google.com [Mon, 9 May 2011 21:59:30 +0000 (21:59 +0000)]
remove unneeded asserts (which may fail from imprecise blits into the bitmap, but
do not affect the blits at head)

git-svn-id: http://skia.googlecode.com/svn/trunk@1286 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoFix unused var warning
bsalomon@google.com [Mon, 9 May 2011 20:47:34 +0000 (20:47 +0000)]
Fix unused var warning

git-svn-id: http://skia.googlecode.com/svn/trunk@1285 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoFixup old VS2010 project in case anyone is using it
bsalomon@google.com [Mon, 9 May 2011 18:53:14 +0000 (18:53 +0000)]
Fixup old VS2010 project in case anyone is using it

git-svn-id: http://skia.googlecode.com/svn/trunk@1284 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoremove deleted include file (oops)
bsalomon@google.com [Mon, 9 May 2011 18:50:47 +0000 (18:50 +0000)]
remove deleted include file (oops)

git-svn-id: http://skia.googlecode.com/svn/trunk@1283 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoRemove previous shader generator class. No longer compiles due to elimination of...
bsalomon@google.com [Mon, 9 May 2011 18:44:52 +0000 (18:44 +0000)]
Remove previous shader generator class. No longer compiles due to elimination of separate GrStringBuilder class in favor or SkString.

git-svn-id: http://skia.googlecode.com/svn/trunk@1282 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoMake shader generator more legible. Get rid of some magic values.
bsalomon@google.com [Mon, 9 May 2011 18:39:58 +0000 (18:39 +0000)]
Make shader generator more legible. Get rid of some magic values.

Review URL: http://codereview.appspot.com/4531043/

git-svn-id: http://skia.googlecode.com/svn/trunk@1281 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years ago[PDF] Add a ToUnicode mapping for fonts.
vandebo@chromium.org [Mon, 9 May 2011 18:13:47 +0000 (18:13 +0000)]
[PDF] Add a ToUnicode mapping for fonts.

This makes text in PDFs searchable and copy&paste-able.

Code from arthurhsu@chromium.org.  Original review: http://codereview.appspot.com/4428082/

Review URL: http://codereview.appspot.com/4525042

git-svn-id: http://skia.googlecode.com/svn/trunk@1280 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years ago[PDF] (regression) Update font if size changes.
vandebo@chromium.org [Mon, 9 May 2011 17:36:36 +0000 (17:36 +0000)]
[PDF] (regression) Update font if size changes.

Review URL: http://codereview.appspot.com/4532044

git-svn-id: http://skia.googlecode.com/svn/trunk@1279 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years ago[PDF] Fix bug in graphic state comparison.
vandebo@chromium.org [Mon, 9 May 2011 17:34:19 +0000 (17:34 +0000)]
[PDF] Fix bug in graphic state comparison.

SkPDFGraphicState::GSCanonicalEntry::operator== was out of sync with SkPDFGraphicState::populateDict  leading to graphic state objects with the same value.

Review URL: http://codereview.appspot.com/4516043

git-svn-id: http://skia.googlecode.com/svn/trunk@1278 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoShare code with SkRect
reed@google.com [Mon, 9 May 2011 17:00:02 +0000 (17:00 +0000)]
Share code with SkRect

http://codereview.appspot.com/4523046/

git-svn-id: http://skia.googlecode.com/svn/trunk@1277 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoremove #if 0 code
reed@google.com [Mon, 9 May 2011 13:37:36 +0000 (13:37 +0000)]
remove #if 0 code

git-svn-id: http://skia.googlecode.com/svn/trunk@1276 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoSuppress int/NULL comparison warning
bsalomon@google.com [Mon, 9 May 2011 13:28:55 +0000 (13:28 +0000)]
Suppress int/NULL comparison warning

git-svn-id: http://skia.googlecode.com/svn/trunk@1275 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years ago[PDF] Add support for Clear, Src, Dst, DstOver xfermodes.
vandebo@chromium.org [Mon, 9 May 2011 08:05:01 +0000 (08:05 +0000)]
[PDF] Add support for Clear, Src, Dst, DstOver xfermodes.

This uses the refactoring in http://codereview.appspot.com/4459041/ to add support for additional xfer modes.  Calling setupContentEntry may affect previous content entries (removing, reordering, or modifying their clip) and indicates to the caller if it should draw the new item or not.

Review URL: http://codereview.appspot.com/4464043

git-svn-id: http://skia.googlecode.com/svn/trunk@1271 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years ago[PDF] Fix setting of existing clip for layers.
vandebo@chromium.org [Mon, 9 May 2011 07:58:08 +0000 (07:58 +0000)]
[PDF] Fix setting of existing clip for layers.

The current approach of setting the existing clip just before drawing a layer into a device doesn't work.  SkDevice::clear() uses existing clip before that and if we need to put the content in a transparency group (i.e. for SrcIn xfermode), we need a valid existing clip.  Instead, change the factory to use a special constructor when creating a layer device.

Review URL: http://codereview.appspot.com/4495041

git-svn-id: http://skia.googlecode.com/svn/trunk@1270 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years ago[PDF] Refactor content stream creation in SkPDFDevice to support more xfermodes.
vandebo@chromium.org [Mon, 9 May 2011 07:55:58 +0000 (07:55 +0000)]
[PDF] Refactor content stream creation in SkPDFDevice to support more xfermodes.

Instead of writing all drawing and state updates into the final content stream immediately, this change creates a new ContentEntry each time the transform, clip, or paint changes.  Drawing is done into a stream in the ContentEntry.  When the consumer asks for the content, we combine all the ContentEntries with appropriate updates to the state (clip, transform, paint) in between.  This allows us to modify the clip even after a drawing has completed.  It also lets us remove ContentEntries with no drawing.  Further optimization can be done to better use the stack features of PDF, for now we follow the previous model of having a single clip followed by a single transform on the graphic state stack.

Push rectangle logic into SkPDFUtil::AppendRectangle.
Change private functions to adhere to coding standards.

Review URL: http://codereview.appspot.com/4459041

git-svn-id: http://skia.googlecode.com/svn/trunk@1269 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agouse SkPoint, creating an alias for GrPoint
reed@google.com [Fri, 6 May 2011 19:26:26 +0000 (19:26 +0000)]
use SkPoint, creating an alias for GrPoint

http://codereview.appspot.com/4498041/

git-svn-id: http://skia.googlecode.com/svn/trunk@1268 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoshare macros and types with SkScalar, but keep aliases for now, to avoid editing
reed@google.com [Fri, 6 May 2011 17:30:45 +0000 (17:30 +0000)]
share macros and types with SkScalar, but keep aliases for now, to avoid editing
call sites.

git-svn-id: http://skia.googlecode.com/svn/trunk@1267 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoReplace GrStringBuilder with SkString. First step in cleaning up the shader generator...
bsalomon@google.com [Fri, 6 May 2011 13:53:47 +0000 (13:53 +0000)]
Replace GrStringBuilder with SkString. First step in cleaning up the shader generator. Slight performance hit when creating a new shader (<10% of total shader gen time on my Windows box is spent in building our string before handing it to GL). Much of this can be recovered by better usage pattern of SkString in coming revisions.

Review URL: http://codereview.appspot.com/4465053/

git-svn-id: http://skia.googlecode.com/svn/trunk@1266 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoremove unused var, fixes warning
bsalomon@google.com [Fri, 6 May 2011 13:12:38 +0000 (13:12 +0000)]
remove unused var, fixes warning

git-svn-id: http://skia.googlecode.com/svn/trunk@1265 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoTab -> spaces
bsalomon@google.com [Fri, 6 May 2011 13:02:10 +0000 (13:02 +0000)]
Tab -> spaces

git-svn-id: http://skia.googlecode.com/svn/trunk@1264 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoadd SkScalarIsInt()
reed@google.com [Fri, 6 May 2011 12:18:08 +0000 (12:18 +0000)]
add SkScalarIsInt()

git-svn-id: http://skia.googlecode.com/svn/trunk@1262 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoFix some fixed-width CJK
reed@google.com [Fri, 6 May 2011 11:49:30 +0000 (11:49 +0000)]
Fix some fixed-width CJK

http://code.google.com/p/skia/issues/detail?id=222

git-svn-id: http://skia.googlecode.com/svn/trunk@1261 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoadd
reed@google.com [Thu, 5 May 2011 20:05:10 +0000 (20:05 +0000)]
add

git-svn-id: http://skia.googlecode.com/svn/trunk@1260 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agodon't require a ptr unless size > 0
reed@google.com [Thu, 5 May 2011 20:04:44 +0000 (20:04 +0000)]
don't require a ptr unless size > 0

git-svn-id: http://skia.googlecode.com/svn/trunk@1259 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoDisable MSAA in SkOsWindow on mac and windows
bsalomon@google.com [Thu, 5 May 2011 15:39:15 +0000 (15:39 +0000)]
Disable MSAA in SkOsWindow on mac and windows

git-svn-id: http://skia.googlecode.com/svn/trunk@1258 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoupdate
reed@google.com [Thu, 5 May 2011 15:18:15 +0000 (15:18 +0000)]
update

git-svn-id: http://skia.googlecode.com/svn/trunk@1257 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agocorrectly compute coverage when an antialiased rect covers only 1 column of pixels
reed@google.com [Thu, 5 May 2011 14:24:47 +0000 (14:24 +0000)]
correctly compute coverage when an antialiased rect covers only 1 column of pixels

git-svn-id: http://skia.googlecode.com/svn/trunk@1256 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoinherit from SampleView
reed@google.com [Thu, 5 May 2011 14:12:36 +0000 (14:12 +0000)]
inherit from SampleView

git-svn-id: http://skia.googlecode.com/svn/trunk@1255 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoupdate for glshaders-not-2
reed@google.com [Thu, 5 May 2011 14:10:16 +0000 (14:10 +0000)]
update for glshaders-not-2

git-svn-id: http://skia.googlecode.com/svn/trunk@1254 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agodisable experimental TEST_GPIPE
reed@google.com [Thu, 5 May 2011 14:07:35 +0000 (14:07 +0000)]
disable experimental TEST_GPIPE

git-svn-id: http://skia.googlecode.com/svn/trunk@1253 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoupdate to SampleView
reed@google.com [Thu, 5 May 2011 14:03:48 +0000 (14:03 +0000)]
update to SampleView

git-svn-id: http://skia.googlecode.com/svn/trunk@1252 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoSwitch to GrGpuGLShaders (instead of GrGpuGLShaders2).
bsalomon@google.com [Thu, 5 May 2011 12:39:20 +0000 (12:39 +0000)]
Switch to GrGpuGLShaders (instead of GrGpuGLShaders2).

git-svn-id: http://skia.googlecode.com/svn/trunk@1251 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAdd 4x4 downsample filter with 4 bilinear texture reads, use for ssaa.
bsalomon@google.com [Thu, 5 May 2011 12:33:22 +0000 (12:33 +0000)]
Add 4x4 downsample filter with 4 bilinear texture reads, use for ssaa.

Review URL: http://codereview.appspot.com/4483042/

git-svn-id: http://skia.googlecode.com/svn/trunk@1250 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoswitch to inheriting from SampleView
mike@reedtribe.org [Thu, 5 May 2011 01:59:48 +0000 (01:59 +0000)]
switch to inheriting from SampleView

git-svn-id: http://skia.googlecode.com/svn/trunk@1249 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoRemove GrPrintf_printf from gyp (should be using GrPrintf_skia that is already includ...
bsalomon@google.com [Wed, 4 May 2011 20:18:04 +0000 (20:18 +0000)]
Remove GrPrintf_printf from gyp (should be using GrPrintf_skia that is already included in the skgr lib to direct GrPrintf to SkDebugf).

git-svn-id: http://skia.googlecode.com/svn/trunk@1248 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoSampleApp builds skia on Linux with BGRA pixel order, but Ganesh's SampleApp
senorblanco@chromium.org [Wed, 4 May 2011 20:12:01 +0000 (20:12 +0000)]
SampleApp builds skia on Linux with BGRA pixel order, but Ganesh's SampleApp
assumes GL_RGBA texture format on all platforms except Windows (where it uses
GL_BGRA), so texture colours come out wrong.  As a temporary fix, do on Linux
what we do on Windows, and assume GL_BGRA.  (This should be made more general
later, and the assumption of matching formats between Skia and Ganesh removed.)

Review URL:  http://codereview.appspot.com/4474046/

git-svn-id: http://skia.googlecode.com/svn/trunk@1247 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoFix SampleApp raster path on Linux to use SK_SAMPLES_FOR_X, so pixel components
senorblanco@chromium.org [Wed, 4 May 2011 18:59:38 +0000 (18:59 +0000)]
Fix SampleApp raster path on Linux to use SK_SAMPLES_FOR_X, so pixel components
are in the right order (RGBA vs BGRA).

Review URL:  http://codereview.appspot.com/4474043/

git-svn-id: http://skia.googlecode.com/svn/trunk@1246 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoadd typeface flattening
reed@google.com [Wed, 4 May 2011 18:30:04 +0000 (18:30 +0000)]
add typeface flattening

git-svn-id: http://skia.googlecode.com/svn/trunk@1245 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoimplement (sort of) Serialize/Deserialize
reed@google.com [Wed, 4 May 2011 18:03:45 +0000 (18:03 +0000)]
implement (sort of) Serialize/Deserialize

git-svn-id: http://skia.googlecode.com/svn/trunk@1244 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoadd find()
reed@google.com [Wed, 4 May 2011 18:03:00 +0000 (18:03 +0000)]
add find()

git-svn-id: http://skia.googlecode.com/svn/trunk@1243 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoMinor fixes to get SampleApp's OpenGL path not to crash on Linux. Initialize
senorblanco@chromium.org [Wed, 4 May 2011 15:29:04 +0000 (15:29 +0000)]
Minor fixes to get SampleApp's OpenGL path not to crash on Linux.  Initialize
SkOSWindow::fGLAttched (and fVi while we're at it), since it was being checked
uninitialized.  Don't call has_gl_extension() while initializing the
GrGLDefaultInterface, since it derefs the default interface (which is still
NULL); use has_gl_extension_from_string() instead.

Review URL:  http://codereview.appspot.com/4480041/

git-svn-id: http://skia.googlecode.com/svn/trunk@1242 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoFix validation (glTexEnvi is fixed pipe only)
bsalomon@google.com [Wed, 4 May 2011 15:01:16 +0000 (15:01 +0000)]
Fix validation (glTexEnvi is fixed pipe only)

git-svn-id: http://skia.googlecode.com/svn/trunk@1241 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agofix precendence error (== binds tighter than &)
reed@google.com [Wed, 4 May 2011 14:43:40 +0000 (14:43 +0000)]
fix precendence error (== binds tighter than &)
add new samples to solution

git-svn-id: http://skia.googlecode.com/svn/trunk@1240 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agonew samples
reed@google.com [Wed, 4 May 2011 14:34:56 +0000 (14:34 +0000)]
new samples

git-svn-id: http://skia.googlecode.com/svn/trunk@1239 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoupdate pipe test
reed@google.com [Wed, 4 May 2011 14:32:04 +0000 (14:32 +0000)]
update pipe test

git-svn-id: http://skia.googlecode.com/svn/trunk@1238 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoadd debugging test for building SkDescriptor
reed@google.com [Wed, 4 May 2011 14:31:07 +0000 (14:31 +0000)]
add debugging test for building SkDescriptor
update some samples

git-svn-id: http://skia.googlecode.com/svn/trunk@1237 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoMake the unix test app build.
scroggo [Wed, 4 May 2011 14:16:36 +0000 (14:16 +0000)]
Make the unix test app build.

There are two ways to build it, using the gyp files,
or using its own makefile.  A recent update of a
sample made it no longer build using its own makefile.
Make it build once again.

git-svn-id: http://skia.googlecode.com/svn/trunk@1236 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoremove deprecated getViewport/setViewport
reed@google.com [Wed, 4 May 2011 13:50:34 +0000 (13:50 +0000)]
remove deprecated getViewport/setViewport

git-svn-id: http://skia.googlecode.com/svn/trunk@1235 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAdd all ES2 glUniform functions to GrGLInterface. Add interface validation for fixed...
bsalomon@google.com [Wed, 4 May 2011 12:35:39 +0000 (12:35 +0000)]
Add all ES2 glUniform functions to GrGLInterface. Add interface validation for fixed pipe or shader pipe use.

Review URL: http://codereview.appspot.com/4435082/

git-svn-id: http://skia.googlecode.com/svn/trunk@1234 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agocode style
mike@reedtribe.org [Wed, 4 May 2011 00:20:09 +0000 (00:20 +0000)]
code style

git-svn-id: http://skia.googlecode.com/svn/trunk@1233 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoupdate
reed@google.com [Tue, 3 May 2011 21:27:49 +0000 (21:27 +0000)]
update

git-svn-id: http://skia.googlecode.com/svn/trunk@1232 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoupdated pipe
reed@google.com [Tue, 3 May 2011 21:26:46 +0000 (21:26 +0000)]
updated pipe

git-svn-id: http://skia.googlecode.com/svn/trunk@1231 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAdd comparison and assignment to SkClipStack (and fix an optimization bug).
vandebo@chromium.org [Tue, 3 May 2011 16:26:09 +0000 (16:26 +0000)]
Add comparison and assignment to SkClipStack (and fix an optimization bug).

Review URL: http://codereview.appspot.com/4423085

git-svn-id: http://skia.googlecode.com/svn/trunk@1230 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agocode style
reed@google.com [Tue, 3 May 2011 15:41:49 +0000 (15:41 +0000)]
code style

git-svn-id: http://skia.googlecode.com/svn/trunk@1229 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoFix arm compile problem on Lucid.
vandebo@chromium.org [Tue, 3 May 2011 02:23:11 +0000 (02:23 +0000)]
Fix arm compile problem on Lucid.

Patch from Jeff Bailey <jeffbailey@google.com>

These functions on ARM both are doing something weird where, when
optimization is not enable, there aren't enough low registers available for
the compiler to handle the asm.

My ARM-fu is pretty weak, so I have forced the functions to -O1, which
allows them to compile.  It would be reasonable to set them to O2 as I
expect anyone debugging this will just tweak it as appropriate.

The error that this is solving:

third_party/skia/src/opts/SkBitmapProcState_opts_arm.cpp: In function 'void
SI8_D16_nofilter_DX_arm(const SkBitmapProcState&, const uint32_t*, int,
uint16_t*)':
third_party/skia/src/opts/SkBitmapProcState_opts_arm.cpp:101:24: error:
can't find a register in class 'LO_REGS' while reloading 'asm'
third_party/skia/src/opts/SkBitmapProcState_opts_arm.cpp:101:24: error:
'asm' operand has impossible constraints

However, it has to be set on both functions, as after the first error is
cleared, it triggers a second time.

Review URL: http://codereview.appspot.com/4452044

git-svn-id: http://skia.googlecode.com/svn/trunk@1228 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoRemove GrContext.h dependence on GrGpu.h
bsalomon@google.com [Mon, 2 May 2011 21:14:59 +0000 (21:14 +0000)]
Remove GrContext.h dependence on GrGpu.h

Review URL:  http://codereview.appspot.com/4433096/

git-svn-id: http://skia.googlecode.com/svn/trunk@1227 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agonever support bw
reed@google.com [Mon, 2 May 2011 20:53:45 +0000 (20:53 +0000)]
never support bw

git-svn-id: http://skia.googlecode.com/svn/trunk@1226 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoupdate gyp file to build new files
bsalomon@google.com [Mon, 2 May 2011 20:46:48 +0000 (20:46 +0000)]
update gyp file to build new files

git-svn-id: http://skia.googlecode.com/svn/trunk@1225 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agofix signed shift in blend32
reed@google.com [Mon, 2 May 2011 19:36:59 +0000 (19:36 +0000)]
fix signed shift in blend32
use typefacecache in fonthost_win

git-svn-id: http://skia.googlecode.com/svn/trunk@1224 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoadd win-specific backend to SkDebugf
reed@google.com [Mon, 2 May 2011 19:11:37 +0000 (19:11 +0000)]
add win-specific backend to SkDebugf

git-svn-id: http://skia.googlecode.com/svn/trunk@1223 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agofix compile
reed@google.com [Mon, 2 May 2011 18:55:39 +0000 (18:55 +0000)]
fix compile

git-svn-id: http://skia.googlecode.com/svn/trunk@1222 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agodisable lifecycle dumps
reed@google.com [Mon, 2 May 2011 17:35:04 +0000 (17:35 +0000)]
disable lifecycle dumps

git-svn-id: http://skia.googlecode.com/svn/trunk@1221 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoadd typefacecache
reed@google.com [Mon, 2 May 2011 17:33:45 +0000 (17:33 +0000)]
add typefacecache
speedup lcd blits
clean up some samples

git-svn-id: http://skia.googlecode.com/svn/trunk@1220 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years ago[PDF] Fix fallout from r1217.
vandebo@chromium.org [Mon, 2 May 2011 15:24:01 +0000 (15:24 +0000)]
[PDF] Fix fallout from r1217.

The width and height we pass to SkDevice must be postive.
Shader can no longer use negative coordinates (without transform).
Shader unflip matrix should use same values as passed to SkPDFDevice (height).
Most Shader dictionary entries should be scalars and not ints.

Review URL: http://codereview.appspot.com/4454047

git-svn-id: http://skia.googlecode.com/svn/trunk@1219 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years ago4x4 SSAA with improvements in determination of when to apply. Still disabled at compi...
bsalomon@google.com [Mon, 2 May 2011 12:53:34 +0000 (12:53 +0000)]
4x4 SSAA with improvements in determination of when to apply. Still disabled at compile time.

Review URL: http://codereview.appspot.com/4445075/

git-svn-id: http://skia.googlecode.com/svn/trunk@1218 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoPDF Device should report non-transformed size for width and height.
ctguil@chromium.org [Fri, 29 Apr 2011 17:54:16 +0000 (17:54 +0000)]
PDF Device should report non-transformed size for width and height.
Review URL: http://codereview.appspot.com/4435074

git-svn-id: http://skia.googlecode.com/svn/trunk@1217 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoFixing a simple build error in GrGpuGLShaders.cpp with GR_AGGRESSIVE_SHADER_OPTS
junov@google.com [Fri, 29 Apr 2011 17:25:42 +0000 (17:25 +0000)]
Fixing a simple build error in GrGpuGLShaders.cpp with GR_AGGRESSIVE_SHADER_OPTS

git-svn-id: http://skia.googlecode.com/svn/trunk@1216 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoupdate dox
reed@google.com [Fri, 29 Apr 2011 11:53:41 +0000 (11:53 +0000)]
update dox
code style

git-svn-id: http://skia.googlecode.com/svn/trunk@1215 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agorename SkPtrRecorder and related wrappers to SkPtrSet, since that is the pattern
mike@reedtribe.org [Fri, 29 Apr 2011 01:44:52 +0000 (01:44 +0000)]
rename SkPtrRecorder and related wrappers to SkPtrSet, since that is the pattern
is it providing. Also add a templated wrapper to handle typecasting of ptr types.

git-svn-id: http://skia.googlecode.com/svn/trunk@1214 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoupdate dox
mike@reedtribe.org [Fri, 29 Apr 2011 01:02:43 +0000 (01:02 +0000)]
update dox

git-svn-id: http://skia.googlecode.com/svn/trunk@1213 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoOnly define debugging GL globals when the code paths are enabled
bsalomon@google.com [Thu, 28 Apr 2011 21:16:31 +0000 (21:16 +0000)]
Only define debugging GL globals when the code paths are enabled

git-svn-id: http://skia.googlecode.com/svn/trunk@1212 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoMake gyp file define GR/SK debug/release flags. Remove file that breaks release build.
bsalomon@google.com [Thu, 28 Apr 2011 21:04:06 +0000 (21:04 +0000)]
Make gyp file define GR/SK debug/release flags. Remove file that breaks release build.

git-svn-id: http://skia.googlecode.com/svn/trunk@1211 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoMake reserveAndLockGeometry set index/vertex ptr to null if none requested. We are...
bsalomon@google.com [Thu, 28 Apr 2011 19:22:57 +0000 (19:22 +0000)]
Make reserveAndLockGeometry set index/vertex ptr to null if none requested. We are expecting this behavior in a caller and it seems reasonable.

git-svn-id: http://skia.googlecode.com/svn/trunk@1210 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoFix warnings.
bsalomon@google.com [Thu, 28 Apr 2011 17:33:34 +0000 (17:33 +0000)]
Fix warnings.

git-svn-id: http://skia.googlecode.com/svn/trunk@1209 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agofix warnings about possibly-uninitialized-variables
reed@google.com [Thu, 28 Apr 2011 14:12:48 +0000 (14:12 +0000)]
fix warnings about possibly-uninitialized-variables

git-svn-id: http://skia.googlecode.com/svn/trunk@1208 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agomove SkOSFile.cpp into utils_files.mk, since it is needed for skdiff on all
reed@google.com [Thu, 28 Apr 2011 14:07:43 +0000 (14:07 +0000)]
move SkOSFile.cpp into utils_files.mk, since it is needed for skdiff on all
platforms

git-svn-id: http://skia.googlecode.com/svn/trunk@1207 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAdding newline at end of file to fix compiler error.
agl@chromium.org [Wed, 27 Apr 2011 23:11:21 +0000 (23:11 +0000)]
Adding newline at end of file to fix compiler error.

Unreviewed, build fix.

git-svn-id: http://skia.googlecode.com/svn/trunk@1206 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAdd bounding rect for paths
bsalomon@google.com [Wed, 27 Apr 2011 21:13:04 +0000 (21:13 +0000)]
Add bounding rect for paths

Review URL: http://codereview.appspot.com/4442094/

git-svn-id: http://skia.googlecode.com/svn/trunk@1205 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAccidentally omitted this file from r1203, :(
bsalomon@google.com [Wed, 27 Apr 2011 21:00:02 +0000 (21:00 +0000)]
Accidentally omitted this file from r1203, :(

git-svn-id: http://skia.googlecode.com/svn/trunk@1204 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoMake Gr clear take a rect for a partial-clear
bsalomon@google.com [Wed, 27 Apr 2011 19:55:29 +0000 (19:55 +0000)]
Make Gr clear take a rect for a partial-clear

Review URL: http://codereview.appspot.com/4442093/

git-svn-id: http://skia.googlecode.com/svn/trunk@1203 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years ago[PDF] Fix warnings on Windows.
vandebo@chromium.org [Wed, 27 Apr 2011 18:41:55 +0000 (18:41 +0000)]
[PDF] Fix warnings on Windows.

Review URL: http://codereview.appspot.com/4426064

git-svn-id: http://skia.googlecode.com/svn/trunk@1202 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoNew 'skdiff' tool to compare two directories full of files, write diff images
tomhudson@google.com [Wed, 27 Apr 2011 15:39:30 +0000 (15:39 +0000)]
New 'skdiff' tool to compare two directories full of files, write diff images
into a third directory, and create a summary web page with metrics for easy
inspection of the results.

git-svn-id: http://skia.googlecode.com/svn/trunk@1200 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAdd missing flattenable registrations and CreateProc() functions;
tomhudson@google.com [Wed, 27 Apr 2011 14:09:52 +0000 (14:09 +0000)]
Add missing flattenable registrations and CreateProc() functions;
fixes gm --serialize xfermode test case.

git-svn-id: http://skia.googlecode.com/svn/trunk@1199 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAdd flattenable registrar for Two_Point_Radial_Gradient.
tomhudson@google.com [Wed, 27 Apr 2011 13:57:03 +0000 (13:57 +0000)]
Add flattenable registrar for Two_Point_Radial_Gradient.

git-svn-id: http://skia.googlecode.com/svn/trunk@1198 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agohttp://codereview.appspot.com/4365051/
reed@google.com [Wed, 27 Apr 2011 11:48:58 +0000 (11:48 +0000)]
http://codereview.appspot.com/4365051/

Unnecessary code duplication for returning arm/neon version of memset . Removed
the redundant file and merged the functionality into opts_check_arm.cpp
which will return arm or neon version of memset based on build flag

git-svn-id: http://skia.googlecode.com/svn/trunk@1197 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoPropagate return values from compare() up to main() so we can return 0 if all
tomhudson@google.com [Tue, 26 Apr 2011 20:22:57 +0000 (20:22 +0000)]
Propagate return values from compare() up to main() so we can return 0 if all
tests succeed, -1 if any tests fail. (This will allow the automated test
infrastructure to run GM.) Because we haven't implemented it on some
architectures, not creating a GPU context is not considered a failure.

git-svn-id: http://skia.googlecode.com/svn/trunk@1196 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoSSSA for drawVerts, cleanup determination of when stage is enabled
bsalomon@google.com [Tue, 26 Apr 2011 20:22:11 +0000 (20:22 +0000)]
SSSA for drawVerts, cleanup determination of when stage is enabled

Review URL: http://codereview.appspot.com/4430066/

git-svn-id: http://skia.googlecode.com/svn/trunk@1195 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agohttp://codereview.appspot.com/4431067/
reed@google.com [Tue, 26 Apr 2011 20:14:24 +0000 (20:14 +0000)]
http://codereview.appspot.com/4431067/

Add a SKIA_SHARED flag to the Makefile to build skia as a shared object.

- Add a libskia.so target that uses gcc -shared rather than ar to link.
- Adjust binaries so they use whichever skia library we've configured.

git-svn-id: http://skia.googlecode.com/svn/trunk@1194 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agohttp://codereview.appspot.com/4436057/
reed@google.com [Tue, 26 Apr 2011 20:06:08 +0000 (20:06 +0000)]
http://codereview.appspot.com/4436057/

Tag some more API headers with SK_API so they are exposed
when doing a DLL build.

git-svn-id: http://skia.googlecode.com/svn/trunk@1193 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agohttp://codereview.appspot.com/4438070/
reed@google.com [Tue, 26 Apr 2011 20:04:16 +0000 (20:04 +0000)]
http://codereview.appspot.com/4438070/

update SK_API for non-windows builds

git-svn-id: http://skia.googlecode.com/svn/trunk@1192 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAnother tiny comment-only change to trigger svn update
epoger@google.com [Tue, 26 Apr 2011 19:31:33 +0000 (19:31 +0000)]
Another tiny comment-only change to trigger svn update

git-svn-id: http://skia.googlecode.com/svn/trunk@1191 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoAllocate a bitmap on the stack in xfermodes.cpp to work around a limitation
tomhudson@google.com [Tue, 26 Apr 2011 18:15:03 +0000 (18:15 +0000)]
Allocate a bitmap on the stack in xfermodes.cpp to work around a limitation
in SkPicture.

git-svn-id: http://skia.googlecode.com/svn/trunk@1190 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoUpdate GR_API to support non-Windows DLLs.
bsalomon@google.com [Tue, 26 Apr 2011 17:59:32 +0000 (17:59 +0000)]
Update GR_API to support non-Windows DLLs.

Review URL: http://codereview.appspot.com/4441067/

git-svn-id: http://skia.googlecode.com/svn/trunk@1189 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoadd helper available()
reed@google.com [Tue, 26 Apr 2011 17:49:03 +0000 (17:49 +0000)]
add helper available()

git-svn-id: http://skia.googlecode.com/svn/trunk@1188 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoadd experimental canvas pipe
reed@google.com [Tue, 26 Apr 2011 17:41:56 +0000 (17:41 +0000)]
add experimental canvas pipe

git-svn-id: http://skia.googlecode.com/svn/trunk@1187 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoPer-draw super sampling. Disabled, path only, 2x2 only
bsalomon@google.com [Tue, 26 Apr 2011 15:31:40 +0000 (15:31 +0000)]
Per-draw super sampling. Disabled, path only, 2x2 only

Review URL: http://codereview.appspot.com/4452048/

git-svn-id: http://skia.googlecode.com/svn/trunk@1186 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoFix default value of doSerialize parameter (oops!).
tomhudson@google.com [Tue, 26 Apr 2011 14:59:32 +0000 (14:59 +0000)]
Fix default value of doSerialize parameter (oops!).
Change suffixes on auxiliary output directories to match names of flags
(-replay and -serialize).
Add to output messages an indication of whether this error occurred during
-replay or -serialize (no indication == standard rendering).

git-svn-id: http://skia.googlecode.com/svn/trunk@1185 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoTiny comment-only change to trigger SVN update in buildbot
epoger@google.com [Tue, 26 Apr 2011 14:58:35 +0000 (14:58 +0000)]
Tiny comment-only change to trigger SVN update in buildbot

git-svn-id: http://skia.googlecode.com/svn/trunk@1184 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoCGColorSpaceCreateDeviceRGB() better matches CG's output
reed@google.com [Tue, 26 Apr 2011 13:40:57 +0000 (13:40 +0000)]
CGColorSpaceCreateDeviceRGB() better matches CG's output

git-svn-id: http://skia.googlecode.com/svn/trunk@1183 2bbb7eff-a529-9590-31e7-b0007b416f81

13 years agoFix signed/unsigned warning in GrInOrderDrawBuffer.cpp
bsalomon@google.com [Tue, 26 Apr 2011 13:22:33 +0000 (13:22 +0000)]
Fix signed/unsigned warning in GrInOrderDrawBuffer.cpp

git-svn-id: http://skia.googlecode.com/svn/trunk@1182 2bbb7eff-a529-9590-31e7-b0007b416f81