platform/upstream/libSkiaSharp.git
12 years agoadd debuggin matrix-proc to validate its output before calling the samplers
reed@google.com [Tue, 27 Mar 2012 15:54:28 +0000 (15:54 +0000)]
add debuggin matrix-proc to validate its output before calling the samplers
Review URL: https://codereview.appspot.com/5901063

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

12 years agoRevert 3503
bsalomon@google.com [Tue, 27 Mar 2012 14:34:08 +0000 (14:34 +0000)]
Revert 3503

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

12 years agoMake GrDrawState object used by GrDrawTarget be settable; set in GrInOrderDrawBuffer...
bsalomon@google.com [Tue, 27 Mar 2012 14:27:27 +0000 (14:27 +0000)]
Make GrDrawState object used by GrDrawTarget be settable; set in GrInOrderDrawBuffer playback

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

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

12 years agooverzealously deleted files
caryclark@google.com [Tue, 27 Mar 2012 13:45:24 +0000 (13:45 +0000)]
overzealously deleted files

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

12 years agoFiles to build Cary's Shape Ops test projects.
caryclark@google.com [Tue, 27 Mar 2012 13:27:36 +0000 (13:27 +0000)]
Files to build Cary's Shape Ops test projects.
These will be moved to experimental/Intersection
later.

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

12 years agowork in progress
caryclark@google.com [Tue, 27 Mar 2012 13:23:51 +0000 (13:23 +0000)]
work in progress
nearly coincident mostly work
support files for creating projects from gyp

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

12 years ago[PDF] Really fix font metric array initialization.
vandebo@chromium.org [Mon, 26 Mar 2012 23:58:04 +0000 (23:58 +0000)]
[PDF] Really fix font metric array initialization.

Review URL: https://codereview.appspot.com/5919043

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

12 years agoMake GrDrawState ref counted. (Small step towards a perf improvement.)
bsalomon@google.com [Mon, 26 Mar 2012 20:33:54 +0000 (20:33 +0000)]
Make GrDrawState ref counted. (Small step towards a perf improvement.)

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

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

12 years agoBuild libjpeg from source for all platforms
epoger@google.com [Mon, 26 Mar 2012 20:04:54 +0000 (20:04 +0000)]
Build libjpeg from source for all platforms

(We were already doing so on Mac and Windows.)
Review URL: https://codereview.appspot.com/5909067

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

12 years agoCopy libjpeg.gyp from third_party/externals/libjpeg/ to gyp/
epoger@google.com [Mon, 26 Mar 2012 18:29:26 +0000 (18:29 +0000)]
Copy libjpeg.gyp from third_party/externals/libjpeg/ to gyp/

This should get our use of libjpeg-from-source unblocked; see http://code.google.com/p/skia/issues/detail?id=543 ('wrap libjpeg.gyp from Chrome's libjpeg port, rather than making our own copy') for a better long-term solution.
Review URL: https://codereview.appspot.com/5908058

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

12 years agoExtended debug GL interface to include textures.
robertphillips@google.com [Mon, 26 Mar 2012 17:58:35 +0000 (17:58 +0000)]
Extended debug GL interface to include textures.

http://codereview.appspot.com/5903043/

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

12 years agoCreate macro for registering classes for deserialization
djsollen@google.com [Mon, 26 Mar 2012 17:57:35 +0000 (17:57 +0000)]
Create macro for registering classes for deserialization
Review URL: https://codereview.appspot.com/5909063

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

12 years agoMake use of the functions in the flattenable reader/writer
djsollen@google.com [Mon, 26 Mar 2012 17:34:39 +0000 (17:34 +0000)]
Make use of the functions in the flattenable reader/writer
Review URL: https://codereview.appspot.com/5905066

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

12 years agorestore line accidentally deleted in MatrixTest.cpp in r3491
bsalomon@google.com [Mon, 26 Mar 2012 17:25:45 +0000 (17:25 +0000)]
restore line accidentally deleted in MatrixTest.cpp in r3491

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

12 years agoAnother fix for fixed point (nan == nan in fixed pt)
bsalomon@google.com [Mon, 26 Mar 2012 15:57:37 +0000 (15:57 +0000)]
Another fix for fixed point (nan == nan in fixed pt)

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

12 years agoFix test to use the flattenable writer class instead of
djsollen@google.com [Mon, 26 Mar 2012 15:52:10 +0000 (15:52 +0000)]
Fix test to use the flattenable writer class instead of
flattening the object directly.
Review URL: https://codereview.appspot.com/5901059

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

12 years agofix compilation bug in fixed pt
bsalomon@google.com [Mon, 26 Mar 2012 15:33:05 +0000 (15:33 +0000)]
fix compilation bug in fixed pt

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

12 years agoAdd SkMatrix::cheapEqualTo, use in Gr code
bsalomon@google.com [Mon, 26 Mar 2012 15:24:27 +0000 (15:24 +0000)]
Add SkMatrix::cheapEqualTo, use in Gr code

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

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

12 years ago[GPU] when paint has patheffect, it should fallback to path render
bsalomon@google.com [Mon, 26 Mar 2012 14:36:55 +0000 (14:36 +0000)]
[GPU] when paint has patheffect, it should fallback to path render

Comitted on behalf of Guanqun.Lu@gmail.com

THIS MAY CAUSE GM TO GO RED, WILL REBASELINE.

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

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

12 years agoadd baselines
reed@google.com [Mon, 26 Mar 2012 14:02:45 +0000 (14:02 +0000)]
add baselines

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

12 years agoRebaseline for 3480.
bungeman@google.com [Fri, 23 Mar 2012 21:39:08 +0000 (21:39 +0000)]
Rebaseline for 3480.

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

12 years agoFix android build
djsollen@google.com [Fri, 23 Mar 2012 19:36:53 +0000 (19:36 +0000)]
Fix android build

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

12 years agoCleanup Macros arround static initializers for SkFlattenable.
djsollen@google.com [Fri, 23 Mar 2012 19:00:34 +0000 (19:00 +0000)]
Cleanup Macros arround static initializers for SkFlattenable.

This CL also removes an unused debugging function from the class
Review URL: https://codereview.appspot.com/5890043

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

12 years agoMake "make gyp" work on Windows
epoger@google.com [Fri, 23 Mar 2012 18:14:25 +0000 (18:14 +0000)]
Make "make gyp" work on Windows

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

12 years agoImproved codec link-forcing system by adding Encoder/Decoder creation entry points
robertphillips@google.com [Fri, 23 Mar 2012 18:13:47 +0000 (18:13 +0000)]
Improved codec link-forcing system by adding Encoder/Decoder creation entry points

http://codereview.appspot.com/5881055/

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

12 years agoGlyph advances from generateAdvance do not always match generateMetrics results.
bungeman@google.com [Fri, 23 Mar 2012 18:11:47 +0000 (18:11 +0000)]
Glyph advances from generateAdvance do not always match generateMetrics results.
http://codereview.appspot.com/5841071/

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

12 years agoUpdate GetAdvancedTypefaceMetrics API in usually-unbuilt files.
tomhudson@google.com [Fri, 23 Mar 2012 15:38:28 +0000 (15:38 +0000)]
Update GetAdvancedTypefaceMetrics API in usually-unbuilt files.
Originally caught by LJin.zq
http://code.google.com/p/skia/issues/detail?id=405

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

12 years agorebaseline (no perceptible diff)
reed@google.com [Fri, 23 Mar 2012 15:37:41 +0000 (15:37 +0000)]
rebaseline (no perceptible diff)

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

12 years agoapply imagefilter to all draw calls
reed@google.com [Fri, 23 Mar 2012 15:36:36 +0000 (15:36 +0000)]
apply imagefilter to all draw calls
Review URL: https://codereview.appspot.com/5856048

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

12 years ago[PDF] Fix font metric array initialization.
vandebo@chromium.org [Fri, 23 Mar 2012 15:17:37 +0000 (15:17 +0000)]
[PDF] Fix font metric array initialization.

Review URL: https://codereview.appspot.com/5885055

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

12 years agoInitialize margin, which was being used uninitialized in compute_bounds()
tomhudson@google.com [Fri, 23 Mar 2012 14:46:48 +0000 (14:46 +0000)]
Initialize margin, which was being used uninitialized in compute_bounds()
on some code paths we apparently aren't exercising.
Caught by Matt Woodrow & gwright@kde.org

http://codereview.appspot.com/5519056/
http://code.google.com/p/skia/issues/detail?id=435

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

12 years agoRemove circular dependency of views and animator.
bungeman@google.com [Fri, 23 Mar 2012 14:11:43 +0000 (14:11 +0000)]
Remove circular dependency of views and animator.
http://codereview.appspot.com/5874056/

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

12 years agofix clang compilation warning
bsalomon@google.com [Thu, 22 Mar 2012 21:29:10 +0000 (21:29 +0000)]
fix clang compilation warning

Submitted on behalf of Guanqun.Lu@gmail.com

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

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

12 years agowork in progress
caryclark@google.com [Thu, 22 Mar 2012 21:11:17 +0000 (21:11 +0000)]
work in progress

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

12 years ago[PDF] Move most of the headers to be private.
vandebo@chromium.org [Thu, 22 Mar 2012 20:45:15 +0000 (20:45 +0000)]
[PDF] Move most of the headers to be private.

Compute font stats in SkPDFDocument in order to make more of the headers private.

Previous review: https://codereview.appspot.com/5868049/

Review URL: https://codereview.appspot.com/5875049

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

12 years agoExtended debug GL interface to include tracking of render buffers
robertphillips@google.com [Thu, 22 Mar 2012 20:43:56 +0000 (20:43 +0000)]
Extended debug GL interface to include tracking of render buffers

http://codereview.appspot.com/5875050/

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

12 years agolanding patch from http://codereview.appspot.com/5874051/
epoger@google.com [Thu, 22 Mar 2012 18:20:06 +0000 (18:20 +0000)]
landing patch from codereview.appspot.com/5874051/

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

12 years agoRemove mutual dependency of gr and skgr.
bungeman@google.com [Thu, 22 Mar 2012 17:56:29 +0000 (17:56 +0000)]
Remove mutual dependency of gr and skgr.
http://codereview.appspot.com/5879043/

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

12 years agoMove unix_test_app/main.cpp to src/views/unix/skia_unix.cpp
epoger@google.com [Thu, 22 Mar 2012 15:37:22 +0000 (15:37 +0000)]
Move unix_test_app/main.cpp to src/views/unix/skia_unix.cpp
Review URL: https://codereview.appspot.com/5881048

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

12 years agoRevert r3463, because it broke Linux.
epoger@google.com [Thu, 22 Mar 2012 15:15:07 +0000 (15:15 +0000)]
Revert r3463, because it broke Linux.
Review URL: https://codereview.appspot.com/5876056

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

12 years agoReset Ganesh TextureDomain after use.
tomhudson@google.com [Thu, 22 Mar 2012 14:44:46 +0000 (14:44 +0000)]
Reset Ganesh TextureDomain after use.

http://codereview.appspot.com/5877049/
http://code.google.com/p/skia/issues/detail?id=540

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

12 years agoDelete unix_test_app directory and its contents.
epoger@google.com [Thu, 22 Mar 2012 14:35:10 +0000 (14:35 +0000)]
Delete unix_test_app directory and its contents.

Leon added this in March 2011 ( http://code.google.com/p/skia/source/detail?spec=svn938&r=938 ), but it's not maintained anymore.
Review URL: https://codereview.appspot.com/5876055

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

12 years agoFix for SampleApp command line parsing issue.
robertphillips@google.com [Thu, 22 Mar 2012 14:12:15 +0000 (14:12 +0000)]
Fix for SampleApp command line parsing issue.

http://codereview.appspot.com/5785054/

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

12 years agodelay any drawing until first call to onDraw (eases debugging)
reed@google.com [Thu, 22 Mar 2012 14:09:28 +0000 (14:09 +0000)]
delay any drawing until first call to onDraw (eases debugging)

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

12 years agoMove SkBitSet to utils.
vandebo@chromium.org [Wed, 21 Mar 2012 23:11:46 +0000 (23:11 +0000)]
Move SkBitSet to utils.

Review URL: https://codereview.appspot.com/5875043

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

12 years agoUtils must not depend on Views.
bungeman@google.com [Wed, 21 Mar 2012 20:59:49 +0000 (20:59 +0000)]
Utils must not depend on Views.
http://codereview.appspot.com/5867051/

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

12 years agoRevert "[PDF] Move most of the headers to be private."
vandebo@chromium.org [Wed, 21 Mar 2012 20:31:08 +0000 (20:31 +0000)]
Revert "[PDF] Move most of the headers to be private."

This reverts r3457

TBR=epoger@google.com

Review URL: https://codereview.appspot.com/5866051

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

12 years ago[PDF] Move most of the headers to be private.
vandebo@chromium.org [Wed, 21 Mar 2012 19:59:04 +0000 (19:59 +0000)]
[PDF] Move most of the headers to be private.

Compute font stats in SkPDFDocument in order to make more of the headers private.

Previous review: https://codereview.appspot.com/5865048/

Review URL: https://codereview.appspot.com/5868049

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

12 years agoRe-attempting Linux debug GL interface compiler complaint fix.
robertphillips@google.com [Wed, 21 Mar 2012 19:46:50 +0000 (19:46 +0000)]
Re-attempting Linux debug GL interface compiler complaint fix.
Fixed two additional compiler complaints.

http://codereview.appspot.com/5845068/

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

12 years agoAdded tracking of frame buffer objects to debug GL interface
robertphillips@google.com [Wed, 21 Mar 2012 17:57:55 +0000 (17:57 +0000)]
Added tracking of frame buffer objects to debug GL interface

http://codereview.appspot.com/5866043/

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

12 years agoRevert "[PDF] Move most of the headers to be private."
vandebo@chromium.org [Wed, 21 Mar 2012 17:55:04 +0000 (17:55 +0000)]
Revert "[PDF] Move most of the headers to be private."

This reverts r3453

TBR=epoger@google.com

Review URL: https://codereview.appspot.com/5869048

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

12 years ago[PDF] Move most of the headers to be private.
vandebo@chromium.org [Wed, 21 Mar 2012 17:45:06 +0000 (17:45 +0000)]
[PDF] Move most of the headers to be private.

Compute font stats in SkPDFDocument in order to make more of the headers private.

Review URL: https://codereview.appspot.com/5865048

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

12 years ago[PDF] Add GM and infrastructure to test drawing shaders with an initial transform.
vandebo@chromium.org [Wed, 21 Mar 2012 17:34:30 +0000 (17:34 +0000)]
[PDF] Add GM and infrastructure to test drawing shaders with an initial transform.

Previous review at https://codereview.appspot.com/5867047/ and https://codereview.appspot.com/5849045/

TBR=reed@google.com

Review URL: https://codereview.appspot.com/5860044

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

12 years agoRevert "[PDF] Add GM and infrastructure to test drawing shaders with an initial trans...
vandebo@chromium.org [Wed, 21 Mar 2012 17:11:27 +0000 (17:11 +0000)]
Revert "[PDF] Add GM and infrastructure to test drawing shaders with an initial transform."

This reverts r3450

TBR=reed@google.com

Review URL: https://codereview.appspot.com/5864050

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

12 years ago[PDF] Add GM and infrastructure to test drawing shaders with an initial transform.
vandebo@chromium.org [Wed, 21 Mar 2012 16:45:47 +0000 (16:45 +0000)]
[PDF] Add GM and infrastructure to test drawing shaders with an initial transform.

Review URL: https://codereview.appspot.com/5867047

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

12 years agoUpstream changes from Android repository.
djsollen@google.com [Wed, 21 Mar 2012 15:39:03 +0000 (15:39 +0000)]
Upstream changes from Android repository.
Review URL: https://codereview.appspot.com/5752055

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

12 years agoReverting Linux compiler complaint patch - again
robertphillips@google.com [Wed, 21 Mar 2012 13:05:04 +0000 (13:05 +0000)]
Reverting Linux compiler complaint patch - again

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

12 years agoPartial re-delivery of Linux compiler complaint changes.
robertphillips@google.com [Wed, 21 Mar 2012 12:26:18 +0000 (12:26 +0000)]
Partial re-delivery of Linux compiler complaint changes.
Was originally delivered as r3428 but was backed out due to pixel diffs on Mac mini.

http://codereview.appspot.com/5845068/

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

12 years agoCast the result of SK_OFFSETOF to size_t to match offsetof() and avoid narrowing...
reed@google.com [Wed, 21 Mar 2012 12:25:48 +0000 (12:25 +0000)]
Cast the result of SK_OFFSETOF to size_t to match offsetof() and avoid narrowing conversion errors

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

12 years agoMove SkClampRange into src/effects, where it isn't being advertised as
tomhudson@google.com [Tue, 20 Mar 2012 21:18:43 +0000 (21:18 +0000)]
Move SkClampRange into src/effects, where it isn't being advertised as
something for end-users.

http://codereview.appspot.com/5864044/

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

12 years agoAdd GrDrawTarget::drawIndexedInstance, use in default text context.
bsalomon@google.com [Tue, 20 Mar 2012 21:17:58 +0000 (21:17 +0000)]
Add GrDrawTarget::drawIndexedInstance, use in default text context.

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

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

12 years agowork in progress
caryclark@google.com [Tue, 20 Mar 2012 21:11:59 +0000 (21:11 +0000)]
work in progress

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

12 years agoAdding CMYK jpeg changes w/o .gyp alterations
robertphillips@google.com [Tue, 20 Mar 2012 17:40:58 +0000 (17:40 +0000)]
Adding CMYK jpeg changes w/o .gyp alterations

http://codereview.appspot.com/5785054/

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

12 years agoConvert SkMatrix::I() assignments to SkMatrix::reset() calls
bsalomon@google.com [Tue, 20 Mar 2012 15:36:32 +0000 (15:36 +0000)]
Convert SkMatrix::I() assignments to SkMatrix::reset() calls

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

12 years agoAdd temp android modification to the GLSL version check
djsollen@google.com [Tue, 20 Mar 2012 15:28:14 +0000 (15:28 +0000)]
Add temp android modification to the GLSL version check
Review URL: https://codereview.appspot.com/5845076

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

12 years agoreverting to 3437
robertphillips@google.com [Tue, 20 Mar 2012 15:13:04 +0000 (15:13 +0000)]
reverting to 3437

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

12 years agoFix for CMYK jpeg decoding issue (69 - unable to read some jpeg files on android)
robertphillips@google.com [Tue, 20 Mar 2012 14:51:47 +0000 (14:51 +0000)]
Fix for CMYK jpeg decoding issue (69 - unable to read some jpeg files on android)

http://codereview.appspot.com/5785054/

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

12 years agoFix scaling issue when drawing text on a path.
djsollen@google.com [Tue, 20 Mar 2012 14:24:38 +0000 (14:24 +0000)]
Fix scaling issue when drawing text on a path.

If the paint is stroked and the font size is small
we were incorrectly rendering the sample text.
Review URL: https://codereview.appspot.com/5844060

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

12 years agoRevert r3435, no perf win
bsalomon@google.com [Mon, 19 Mar 2012 21:18:04 +0000 (21:18 +0000)]
Revert r3435, no perf win

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

12 years agoinline GrDrawTarget::copyDrawState
bsalomon@google.com [Mon, 19 Mar 2012 21:09:08 +0000 (21:09 +0000)]
inline GrDrawTarget::copyDrawState

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

12 years agoCompile with c++0x.
bungeman@google.com [Mon, 19 Mar 2012 21:04:52 +0000 (21:04 +0000)]
Compile with c++0x.
http://codereview.appspot.com/5841074/

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

12 years agoAdd basic support for vertical text into freetype.
djsollen@google.com [Mon, 19 Mar 2012 19:44:19 +0000 (19:44 +0000)]
Add basic support for vertical text into freetype.
Review URL: https://codereview.appspot.com/5794081

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

12 years agoadd optional updateMatrixClip param to getTopDevice(). Chrome should set this
reed@google.com [Mon, 19 Mar 2012 18:26:34 +0000 (18:26 +0000)]
add optional updateMatrixClip param to getTopDevice(). Chrome should set this
only when it is needed, and in doing so it can stop using the layeriter just
to get its top device.

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

12 years agorebaselin gpu versions
reed@google.com [Mon, 19 Mar 2012 18:18:32 +0000 (18:18 +0000)]
rebaselin gpu versions

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

12 years agorolling back to r3427
robertphillips@google.com [Mon, 19 Mar 2012 17:33:58 +0000 (17:33 +0000)]
rolling back to r3427

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

12 years agoForcing buildbots to re-run
robertphillips@google.com [Mon, 19 Mar 2012 16:54:28 +0000 (16:54 +0000)]
Forcing buildbots to re-run

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

12 years agoAddressed compiler warnings in the Debug GL Interface on Linux.
robertphillips@google.com [Mon, 19 Mar 2012 16:19:02 +0000 (16:19 +0000)]
Addressed compiler warnings in the Debug GL Interface on Linux.

http://codereview.appspot.com/5845068/

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

12 years agoAnother fix to r3423, reinstate blitter code that was commented out for
tomhudson@google.com [Mon, 19 Mar 2012 15:27:13 +0000 (15:27 +0000)]
Another fix to r3423, reinstate blitter code that was commented out for
testing and apparently isn't exercised by any of our GMs or tests.

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

12 years agoAdded debug GL Interface. This interface tracks various GL objects in order to find...
robertphillips@google.com [Mon, 19 Mar 2012 14:42:13 +0000 (14:42 +0000)]
Added debug GL Interface. This interface tracks various GL objects in order to find leaks & invalid accesses.

Core Review: http://codereview.appspot.com/5846049/

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

12 years agoFix Android, too, by providing cross-platform NULL version of new factory.
tomhudson@google.com [Mon, 19 Mar 2012 14:20:56 +0000 (14:20 +0000)]
Fix Android, too, by providing cross-platform NULL version of new factory.

Another cowboy build fix.

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

12 years agoRemove stale #include.
tomhudson@google.com [Mon, 19 Mar 2012 14:11:03 +0000 (14:11 +0000)]
Remove stale #include.

Unreviewed cowboy commit to fix build.

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

12 years ago(SSE2) acceleration for rectangular opaque erases.
tomhudson@google.com [Mon, 19 Mar 2012 13:49:50 +0000 (13:49 +0000)]
(SSE2) acceleration for rectangular opaque erases.
15% speedup for rectangles < 31 px wide, 5% for larger.

http://codereview.appspot.com/5843050/

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

12 years agoMake the text context not have to save / restore GrDrawState at each draw.
bsalomon@google.com [Mon, 19 Mar 2012 13:06:19 +0000 (13:06 +0000)]
Make the text context not have to save / restore GrDrawState at each draw.

Reivew URL: http://codereview.appspot.com/5844049/

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

12 years agoGPU blit speedup: avoid texture filtering and texture domain when not necessary
junov@chromium.org [Fri, 16 Mar 2012 20:54:17 +0000 (20:54 +0000)]
GPU blit speedup: avoid texture filtering and texture domain when not necessary

BUG=crbug.com/102284
REVIEW=http://codereview.appspot.com/5836047/
TEST=code path already covered by gm/nocolorbleed gm/bitmapfilters and others

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

12 years ago[PDF] Fix shaders when the initial transform has a translation.
vandebo@chromium.org [Fri, 16 Mar 2012 19:50:37 +0000 (19:50 +0000)]
[PDF] Fix shaders when the initial transform has a translation.

Fixes chromium bug 115041

Review URL: https://codereview.appspot.com/5849045

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

12 years agoAdd libjpeg.gyp that wraps third_party/externals/libjpeg/libjpeg.gyp
epoger@google.com [Fri, 16 Mar 2012 19:01:38 +0000 (19:01 +0000)]
Add libjpeg.gyp that wraps third_party/externals/libjpeg/libjpeg.gyp
Review URL: https://codereview.appspot.com/5848046

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

12 years agoAdd os_posix gyp variable, nesting variables dicts as needed to do so.
epoger@google.com [Fri, 16 Mar 2012 18:28:24 +0000 (18:28 +0000)]
Add os_posix gyp variable, nesting variables dicts as needed to do so.
Review URL: https://codereview.appspot.com/5845050

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

12 years agoSkip unnecessary copies in GrPaint operator ==
bsalomon@google.com [Fri, 16 Mar 2012 17:50:37 +0000 (17:50 +0000)]
Skip unnecessary copies in GrPaint operator ==

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

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

12 years agoDelete 'obsolete' directory, most of whose contents have been there more than a year.
tomhudson@google.com [Fri, 16 Mar 2012 17:16:25 +0000 (17:16 +0000)]
Delete 'obsolete' directory, most of whose contents have been there more than a year.

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

12 years agoCall reset() in text context rather than set to SkMatrix::I(). Perf improvement in...
bsalomon@google.com [Fri, 16 Mar 2012 15:41:40 +0000 (15:41 +0000)]
Call reset() in text context rather than set to SkMatrix::I(). Perf improvement in bench.

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

12 years agoadd IRect variant of getBounds()
reed@google.com [Fri, 16 Mar 2012 14:58:07 +0000 (14:58 +0000)]
add IRect variant of getBounds()

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

12 years agodecal mode babystep
reed@google.com [Fri, 16 Mar 2012 14:38:06 +0000 (14:38 +0000)]
decal mode babystep

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

12 years agoSplit GrTextContext into baseclass and subclass
bsalomon@google.com [Fri, 16 Mar 2012 14:02:46 +0000 (14:02 +0000)]
Split GrTextContext into baseclass and subclass

This is a step towards enabling alternate text rendering code paths (GLyphy in particular)

Committed on behalf of baranowski@chromium.org

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

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

12 years agoMake all gyp targets automatically include common.gypi
epoger@google.com [Fri, 16 Mar 2012 13:52:49 +0000 (13:52 +0000)]
Make all gyp targets automatically include common.gypi

Do this, rather than including common.gypi explicitly in all our gyp files, so that gyp files we use but do not maintain (e.g., third_party/externals/libjpeg/libjpeg.gyp) will include common.gypi too.
Review URL: https://codereview.appspot.com/5820068

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

12 years agoforward declare SkRect
reed@google.com [Thu, 15 Mar 2012 21:18:11 +0000 (21:18 +0000)]
forward declare SkRect

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

12 years agoadd getBounds() helper
reed@google.com [Thu, 15 Mar 2012 21:17:03 +0000 (21:17 +0000)]
add getBounds() helper

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

12 years agoupdate baseline
reed@google.com [Thu, 15 Mar 2012 19:52:39 +0000 (19:52 +0000)]
update baseline

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

12 years agoupdate baseline
reed@google.com [Thu, 15 Mar 2012 19:51:54 +0000 (19:51 +0000)]
update baseline

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

12 years agoClose a couple of minor memory leaks, add a valgrind suppression file to
tomhudson@google.com [Thu, 15 Mar 2012 18:16:39 +0000 (18:16 +0000)]
Close a couple of minor memory leaks, add a valgrind suppression file to
mute complaints about apparent driver bugs.

http://codereview.appspot.com/5837046/

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

12 years agoChange vertex buffer size for draw buffer. Hopefully helps with some of the perf...
bsalomon@google.com [Thu, 15 Mar 2012 17:47:06 +0000 (17:47 +0000)]
Change vertex buffer size for draw buffer. Hopefully helps with some of the perf regression of r3382 on txt drawing.

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