caryclark@google.com [Thu, 11 Oct 2012 12:54:23 +0000 (12:54 +0000)]
shape ops work in progress
git-svn-id: http://skia.googlecode.com/svn/trunk@5893
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Thu, 11 Oct 2012 02:01:14 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@5892
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Wed, 10 Oct 2012 20:36:13 +0000 (20:36 +0000)]
This patch implements generalized DAG connectivity for SkImageFilter. SkImageFilter maintains a list of inputs, which can be constructed either from a SkImageFilter** or zero or more SkImageFilter* arguments (varargs).
Existing filters which maintained their own filter connectivity were refactored to use the new constructors and flattening/unflattening code. Modifying the remaining filters which are not yet DAG-friendly is left for future work; they are considered to have zero inputs for now.
Review URL: https://codereview.appspot.com/
6443119
git-svn-id: http://skia.googlecode.com/svn/trunk@5891
2bbb7eff-a529-9590-31e7-
b0007b416f81
borenet@google.com [Wed, 10 Oct 2012 19:45:51 +0000 (19:45 +0000)]
Build Skia as a static library
- Roll GYP so that we get non-thin archives on Linux
- Add merge_static_libs.py
- Add skia_core_lib target which builds core, ports, opts*, and utils
- Replace dependencies on core/ports/opts/utils with skia_core_libs
- Rename exportable libraries with "skia_"
Review URL: https://codereview.appspot.com/
6619049
git-svn-id: http://skia.googlecode.com/svn/trunk@5889
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Wed, 10 Oct 2012 18:29:31 +0000 (18:29 +0000)]
Disable transitions for the Android SampleApp.
Review URL: https://codereview.appspot.com/
6642063
git-svn-id: http://skia.googlecode.com/svn/trunk@5887
2bbb7eff-a529-9590-31e7-
b0007b416f81
edisonn@google.com [Wed, 10 Oct 2012 16:42:26 +0000 (16:42 +0000)]
Fix build break. a cpp file was not included in the checkin list. will send to code review and check it in too
git-svn-id: http://skia.googlecode.com/svn/trunk@5885
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 10 Oct 2012 16:12:14 +0000 (16:12 +0000)]
Draw hairline text as path.
R=reed@google.com
Review URL: https://codereview.appspot.com/
6632060
git-svn-id: http://skia.googlecode.com/svn/trunk@5884
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 10 Oct 2012 15:25:50 +0000 (15:25 +0000)]
Reland r5861 but leave setMatrixClip virtual on SkDevice (IOW this is a partial revert of r5871 which reverted r5861).
Unreviewed
Review URL: https://codereview.appspot.com/
6631062
git-svn-id: http://skia.googlecode.com/svn/trunk@5881
2bbb7eff-a529-9590-31e7-
b0007b416f81
edisonn@google.com [Wed, 10 Oct 2012 15:20:34 +0000 (15:20 +0000)]
Add an SKP to PDF rendered. test_pdfs.py will be hooked up in buildbot testing later.
Review URL: https://codereview.appspot.com/
6610056
git-svn-id: http://skia.googlecode.com/svn/trunk@5880
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 10 Oct 2012 15:17:24 +0000 (15:17 +0000)]
add ability to skip 565 test in gm (until I can fix an assert in debug build)
git-svn-id: http://skia.googlecode.com/svn/trunk@5879
2bbb7eff-a529-9590-31e7-
b0007b416f81
edisonn@google.com [Wed, 10 Oct 2012 15:08:12 +0000 (15:08 +0000)]
Refactor test_pictures so we can add test_pdfs without code duplication.
Review URL: https://codereview.appspot.com/
6611050
git-svn-id: http://skia.googlecode.com/svn/trunk@5878
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 10 Oct 2012 13:35:23 +0000 (13:35 +0000)]
Add a new GM: shadertext2.
It tests a bitmap shader with various combinations of matrices and shader matrices. The text is drawn filled and stroked.
Review URL: https://codereview.appspot.com/
6639052
git-svn-id: http://skia.googlecode.com/svn/trunk@5877
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Wed, 10 Oct 2012 02:01:30 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@5872
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Tue, 9 Oct 2012 22:30:18 +0000 (22:30 +0000)]
Reverting r5861 (remove gainfocus and setMatixClip) due to Chrome compilation issues
git-svn-id: http://skia.googlecode.com/svn/trunk@5871
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo@google.com [Tue, 9 Oct 2012 20:02:20 +0000 (20:02 +0000)]
Make SkPictures valid regardless of SK_SUPPORT_HINTING_SCALE_FACTOR.
When the build flag is not set, read/write dummy values
so that the creator of an SKP file need not have the same
support/lack of support of the feature as the reader.
Will separately update the checked in skps to the new version when checking in.
BUG=http://code.google.com/p/skia/issues/detail?id=922
Review URL: https://codereview.appspot.com/
6642057
git-svn-id: http://skia.googlecode.com/svn/trunk@5869
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 9 Oct 2012 19:45:59 +0000 (19:45 +0000)]
correctly handle negative values in fixed_clamp()
Review URL: https://codereview.appspot.com/
6633049
git-svn-id: http://skia.googlecode.com/svn/trunk@5867
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Tue, 9 Oct 2012 19:26:59 +0000 (19:26 +0000)]
Disable automatic font fallback of SkFontHost_android when building for WebKit
The internal font fallback mechanism prevents WebKit from getting
the properties of the actually used font. Disable the internal fallback
mechanism when building for WebKit and add SkGetFallbackFamilyNameForChar()
to let the upper level know the fallback font for individial characters.
This commits a change that was submitted for review by...
wangxianzhu1 @ https://codereview.appspot.com/
6572059/
BUG=913 (http://code.google.com/p/skia/issues/detail?id=913)
Review URL: https://codereview.appspot.com/
6640048
git-svn-id: http://skia.googlecode.com/svn/trunk@5866
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Tue, 9 Oct 2012 17:40:32 +0000 (17:40 +0000)]
Fixed xoom bug introduced in r5830
https://codereview.appspot.com/
6604053/
git-svn-id: http://skia.googlecode.com/svn/trunk@5862
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 9 Oct 2012 14:20:37 +0000 (14:20 +0000)]
Remove gainFocus() and setMatrixClip() virtuals from SkDevice.
R=reed@google.com,robertphillips@google.com
Review URL: https://codereview.appspot.com/
6636050
git-svn-id: http://skia.googlecode.com/svn/trunk@5861
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Tue, 9 Oct 2012 14:11:58 +0000 (14:11 +0000)]
checkpoint for shape ops
at minimum, the unit tests in SimplyNew_Test pass
git-svn-id: http://skia.googlecode.com/svn/trunk@5860
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Tue, 9 Oct 2012 12:32:37 +0000 (12:32 +0000)]
fix filter for ios
Review URL: https://codereview.appspot.com/
6635047
git-svn-id: http://skia.googlecode.com/svn/trunk@5859
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Tue, 9 Oct 2012 02:01:37 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@5858
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 8 Oct 2012 20:44:25 +0000 (20:44 +0000)]
Remove external matrix feature.
We haven't been testing this for nearly two years.
R=reed@google.com
Review URL: https://codereview.appspot.com/
6640044
git-svn-id: http://skia.googlecode.com/svn/trunk@5857
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 8 Oct 2012 18:59:39 +0000 (18:59 +0000)]
Make additional code paths go through GrDrawState helper classes for their matrix manipulations.
R=robertphillips@google.com
Review URL: https://codereview.appspot.com/
6615064
git-svn-id: http://skia.googlecode.com/svn/trunk@5856
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Mon, 8 Oct 2012 18:42:14 +0000 (18:42 +0000)]
Speculative fix for Chrome bug
https://codereview.appspot.com/
6632045/
git-svn-id: http://skia.googlecode.com/svn/trunk@5855
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 8 Oct 2012 17:15:55 +0000 (17:15 +0000)]
Make GrDrawState::AutoRestoreViewMatrix handle sampler matrices.
R=robertphillips@google.com
Review URL: https://codereview.appspot.com/
6618065
git-svn-id: http://skia.googlecode.com/svn/trunk@5853
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 8 Oct 2012 14:48:36 +0000 (14:48 +0000)]
Remove translate param from GrContext::drawPath (and subsequent calls).
Review URL: https://codereview.appspot.com/
6615062
git-svn-id: http://skia.googlecode.com/svn/trunk@5852
2bbb7eff-a529-9590-31e7-
b0007b416f81
tfarina@chromium.org [Mon, 8 Oct 2012 14:41:10 +0000 (14:41 +0000)]
Remove unnecessary function declaration.
R=robertphillips@google.com
Review URL: https://codereview.appspot.com/
6593082
git-svn-id: http://skia.googlecode.com/svn/trunk@5851
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Sun, 7 Oct 2012 22:51:21 +0000 (22:51 +0000)]
Fix typo in SkFontHost_win_dw.cpp.
git-svn-id: http://skia.googlecode.com/svn/trunk@5850
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Sat, 6 Oct 2012 02:05:26 +0000 (02:05 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@5848
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 5 Oct 2012 20:13:28 +0000 (20:13 +0000)]
Move some auto restore helpers from GrDrawTarget to GrDrawState.
R=robertphillips@google.com
git-svn-id: http://skia.googlecode.com/svn/trunk@5846
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 5 Oct 2012 19:04:13 +0000 (19:04 +0000)]
GrPaint encapsulation.
R=robertphillips@google.com
Review URL: https://codereview.appspot.com/
6624052
git-svn-id: http://skia.googlecode.com/svn/trunk@5838
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Fri, 5 Oct 2012 18:43:58 +0000 (18:43 +0000)]
No hinting on Mac should be lower priority than subpixel rendering.
https://codereview.appspot.com/
6612056/
git-svn-id: http://skia.googlecode.com/svn/trunk@5836
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 5 Oct 2012 18:08:27 +0000 (18:08 +0000)]
Fix find/replace missed in #ifdef'ed out code in r5827.
Unreviewed.
git-svn-id: http://skia.googlecode.com/svn/trunk@5834
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Fri, 5 Oct 2012 17:38:00 +0000 (17:38 +0000)]
Change SkLightingImageFilter to derive from SkSingleInputImageFilter, so that it can participate in filter DAGs.
No tests yet.
Review URL: https://codereview.appspot.com/
6620055
git-svn-id: http://skia.googlecode.com/svn/trunk@5832
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Fri, 5 Oct 2012 15:37:00 +0000 (15:37 +0000)]
Moved paint color to vertex colors for batched rects
https://codereview.appspot.com/
6620045/
git-svn-id: http://skia.googlecode.com/svn/trunk@5830
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Fri, 5 Oct 2012 15:19:27 +0000 (15:19 +0000)]
cleanup coding style for r5825
Review URL: https://codereview.appspot.com/
6621054
git-svn-id: http://skia.googlecode.com/svn/trunk@5829
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 5 Oct 2012 14:54:42 +0000 (14:54 +0000)]
Rename GrPaint fields/enums/members texture->color mask->coverage.
R=robertphillips@google.com
Review URL: https://codereview.appspot.com/
6615046
git-svn-id: http://skia.googlecode.com/svn/trunk@5827
2bbb7eff-a529-9590-31e7-
b0007b416f81
djsollen@google.com [Fri, 5 Oct 2012 14:48:32 +0000 (14:48 +0000)]
Reduce Android Log Spam.
The logging of system fonts is now hidden behind a #define
Review URL: https://codereview.appspot.com/
6609048
git-svn-id: http://skia.googlecode.com/svn/trunk@5825
2bbb7eff-a529-9590-31e7-
b0007b416f81
bensong@google.com [Fri, 5 Oct 2012 14:02:33 +0000 (14:02 +0000)]
Adds a script to help analyze bench ranges to add/change in bench/bench_expectations.txt
git-svn-id: http://skia.googlecode.com/svn/trunk@5824
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Fri, 5 Oct 2012 13:23:24 +0000 (13:23 +0000)]
Move setPaint from GrContext to GrDrawState.
R=robertphillips@google.com
Review URL: https://codereview.appspot.com/
6624045
git-svn-id: http://skia.googlecode.com/svn/trunk@5823
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Fri, 5 Oct 2012 02:01:40 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@5821
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Thu, 4 Oct 2012 22:03:41 +0000 (22:03 +0000)]
Remove state from SkColorSpaceLuminance to avoid memory management.
https://codereview.appspot.com/
6610047/
git-svn-id: http://skia.googlecode.com/svn/trunk@5820
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo@google.com [Thu, 4 Oct 2012 22:02:46 +0000 (22:02 +0000)]
Do not do PNG encoding/decoding when testing picture serialization.
Fixes the build.
Review URL: https://codereview.appspot.com/
6624046
git-svn-id: http://skia.googlecode.com/svn/trunk@5819
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo@google.com [Thu, 4 Oct 2012 21:46:08 +0000 (21:46 +0000)]
Add the ability to provide function pointers to SkPicture serialization
and deserialization for encoding and decoding bitmaps.
Remove kForceFlattenBitmapPixels_Flag, which is no longer used.
When an SkOrderedReadBuffer needs to read a bitmap, if it does not
have an image decoder, use a dummy bitmap.
In GM, add a tolerance option for color differences, used when
testing picture serialization, so it can assume two images are the
same even though PNG encoding/decoding may have resulted in small
differences.
Create dummy implementations for SkImageDecoder and SkImageEncoder
functions in SkImageDecoder_empty so that a project that does not
want to include the images project it can still build.
Allow ports to build without images project.
In Mac's image encoder, copy 4444 to 8888 before encoding.
Add SkWriter32::reservePad, to provide a pointer to write non 4 byte
aligned data, padded with zeroes.
In bench_ and render_ pictures, pass decode function to SkPicture
creation from a stream.
BUG=https://code.google.com/p/skia/issues/detail?id=842
Review URL: https://codereview.appspot.com/
6551071
git-svn-id: http://skia.googlecode.com/svn/trunk@5818
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo@google.com [Thu, 4 Oct 2012 20:45:06 +0000 (20:45 +0000)]
Lock gFTMutex when modifying FT globals.
This prevents a crash when running bench_pictures with multiple threads.
Also remove an unused function and fix a typo in SkFontHost.
Review URL: https://codereview.appspot.com/
6625043
git-svn-id: http://skia.googlecode.com/svn/trunk@5816
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 4 Oct 2012 19:42:00 +0000 (19:42 +0000)]
Add convenience function on GrDrawState to set state bit based on a bool.
R=robertphillips@google.com
Review URL: https://codereview.appspot.com/
6615044
git-svn-id: http://skia.googlecode.com/svn/trunk@5815
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Thu, 4 Oct 2012 18:15:15 +0000 (18:15 +0000)]
Build fix: work around what appears to be an Intel GLSL driver bug. Unreviewed.
git-svn-id: http://skia.googlecode.com/svn/trunk@5812
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Thu, 4 Oct 2012 17:57:05 +0000 (17:57 +0000)]
Fixed bug(s) in batching of rects
https://codereview.appspot.com/
6608043/
git-svn-id: http://skia.googlecode.com/svn/trunk@5811
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 4 Oct 2012 17:55:30 +0000 (17:55 +0000)]
Disable SK_DEBUG_PATH_REF in debug builds.
R=reed@google.com
Review URL: https://codereview.appspot.com/
6602056
git-svn-id: http://skia.googlecode.com/svn/trunk@5810
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Thu, 4 Oct 2012 17:18:20 +0000 (17:18 +0000)]
Implement GPU path for matrix convolution. Note that when not convolving alpha,
the premultiplying is done less efficiently than in the raster path: it's
done on each texture access, rather than as a pre-processing pass. This was
so I could do the filter as a single custom stage; will try the optimization
separately.
This implementation gives a ~30X speedup on the GPU results for the
matrixconvolution bench (~10X due to the GPU, and ~3X due to texture
uploads/readback removal).
Note: this changes the matrixconvolution for the software path as well, so
it will likely break the bots until that test is rebaselined.
Review URL: https://codereview.appspot.com/
6585069/
git-svn-id: http://skia.googlecode.com/svn/trunk@5809
2bbb7eff-a529-9590-31e7-
b0007b416f81
epoger@google.com [Thu, 4 Oct 2012 14:50:18 +0000 (14:50 +0000)]
Change default skia_osx_sdkroot to "macosx" (suitable for Xcode 3.2.6+)
See https://codereview.appspot.com/
6553044
BUG=https://code.google.com/p/skia/issues/detail?id=796
Review URL: https://codereview.appspot.com/
6598055
git-svn-id: http://skia.googlecode.com/svn/trunk@5806
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 4 Oct 2012 14:38:48 +0000 (14:38 +0000)]
Make numTextures() be non-virtual on GrCustomStage.
R=tomhudson@google.com,robertphillips@google.com,senorblanco@chromium.org
Review URL: https://codereview.appspot.com/
6586081
git-svn-id: http://skia.googlecode.com/svn/trunk@5805
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 4 Oct 2012 13:26:32 +0000 (13:26 +0000)]
Omit shader swizzle if it is rgba.
R=robertphilips@google.com
Review URL: https://codereview.appspot.com/
6585082
git-svn-id: http://skia.googlecode.com/svn/trunk@5804
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Thu, 4 Oct 2012 13:00:33 +0000 (13:00 +0000)]
Created filter command line tool
https://codereview.appspot.com/
6595066/
git-svn-id: http://skia.googlecode.com/svn/trunk@5803
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Thu, 4 Oct 2012 12:52:03 +0000 (12:52 +0000)]
Allow Xcode to change paths to frameworks based on whether a device or simulator was selected.
R=caryclark@google.com
Review URL: https://codereview.appspot.com/
6590068
git-svn-id: http://skia.googlecode.com/svn/trunk@5802
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Thu, 4 Oct 2012 02:01:34 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@5798
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 3 Oct 2012 21:37:30 +0000 (21:37 +0000)]
Ensure SkPathRef debug code mutex is initialized during creation of statically-initialized SkPaths.
R=reed@google.com
Review URL: https://codereview.appspot.com/
6592069
git-svn-id: http://skia.googlecode.com/svn/trunk@5797
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 3 Oct 2012 20:58:26 +0000 (20:58 +0000)]
Make it possible to generate the ios xcode proj by specifying only skia_os="ios" in GYP_DEFINES.
R=caryclark@google.com,epoger@google.com
Review URL: https://codereview.appspot.com/
6601051
git-svn-id: http://skia.googlecode.com/svn/trunk@5796
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 3 Oct 2012 20:40:38 +0000 (20:40 +0000)]
revert 5794
git-svn-id: http://skia.googlecode.com/svn/trunk@5795
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Wed, 3 Oct 2012 20:17:22 +0000 (20:17 +0000)]
add test for rotated saveLayer, to see that we clip against the specified bounds
(hint: we don't at the moment)
git-svn-id: http://skia.googlecode.com/svn/trunk@5794
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 3 Oct 2012 19:57:01 +0000 (19:57 +0000)]
Adds extra debugging to SkPathRef that can optionally be turned on in a release build.
This is pretty hacky but hopefully will be quite short-lived.
Review URL: https://codereview.appspot.com/
6584074
git-svn-id: http://skia.googlecode.com/svn/trunk@5793
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 3 Oct 2012 19:10:31 +0000 (19:10 +0000)]
Fix test_small_segments3 path measure test.
Review URL: https://codereview.appspot.com/
6601050
git-svn-id: http://skia.googlecode.com/svn/trunk@5792
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo@google.com [Wed, 3 Oct 2012 17:32:33 +0000 (17:32 +0000)]
Allow render_pictures to render using multiple threads.
Make write() a static function so it can be used by the
thread entry functions.
Add a helper function to append a number to a string and
call write to share code.
Review URL: https://codereview.appspot.com/
6589062
git-svn-id: http://skia.googlecode.com/svn/trunk@5789
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Wed, 3 Oct 2012 13:46:20 +0000 (13:46 +0000)]
Revert r5557 (which itself was a revert of r5433). Relands SkPathRef. Will follow with change for extra debug checks to attempt to ferret out crbug.com/148637.
git-svn-id: http://skia.googlecode.com/svn/trunk@5783
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Wed, 3 Oct 2012 13:25:13 +0000 (13:25 +0000)]
Added bench to replicate Google spreadsheet-style table drawing
https://codereview.appspot.com/
6593076/
git-svn-id: http://skia.googlecode.com/svn/trunk@5782
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Wed, 3 Oct 2012 04:46:10 +0000 (04:46 +0000)]
Delete SkStream_Win.h as it appears to never have been used.
https://code.google.com/p/skia/issues/detail?id=281
git-svn-id: http://skia.googlecode.com/svn/trunk@5781
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Wed, 3 Oct 2012 02:01:13 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@5780
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Tue, 2 Oct 2012 20:00:03 +0000 (20:00 +0000)]
fix return value for render_pictures
Review URL: https://codereview.appspot.com/
6590049
git-svn-id: http://skia.googlecode.com/svn/trunk@5779
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Tue, 2 Oct 2012 18:43:49 +0000 (18:43 +0000)]
Oops, forgot a file
Review URL: https://codereview.appspot.com/
6593064
git-svn-id: http://skia.googlecode.com/svn/trunk@5777
2bbb7eff-a529-9590-31e7-
b0007b416f81
caryclark@google.com [Tue, 2 Oct 2012 18:33:14 +0000 (18:33 +0000)]
build iOS with 'make all'
This builds all skia tests by treating iOS tools
as executable applications. A few warnings were
fixed as well.
Removed old trace draw code and remnants.
Review URL: https://codereview.appspot.com/
6597063
git-svn-id: http://skia.googlecode.com/svn/trunk@5776
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 2 Oct 2012 17:51:29 +0000 (17:51 +0000)]
add getSeed()
git-svn-id: http://skia.googlecode.com/svn/trunk@5775
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 2 Oct 2012 17:42:15 +0000 (17:42 +0000)]
catch empty stack in restorefixup called by clipRect
write stress-test for save/clip/restore peephole optimization
git-svn-id: http://skia.googlecode.com/svn/trunk@5774
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Tue, 2 Oct 2012 15:54:26 +0000 (15:54 +0000)]
reenable peephole optimization for save/clip/restore, with build flag
SK_DISABLE_PICTURE_PEEPHOLE_OPTIMIZATION to disable it (optional)
git-svn-id: http://skia.googlecode.com/svn/trunk@5770
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Tue, 2 Oct 2012 15:42:21 +0000 (15:42 +0000)]
xcode_settings OTHER_CPLUSPLUSFLAGS is a list.
https://codereview.appspot.com/
6588062/
git-svn-id: http://skia.googlecode.com/svn/trunk@5769
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Tue, 2 Oct 2012 15:25:12 +0000 (15:25 +0000)]
Add SkNativeGLContext implementation for iOS.
R=caryclark@google.com
Review URL: https://codereview.appspot.com/
6589055
git-svn-id: http://skia.googlecode.com/svn/trunk@5767
2bbb7eff-a529-9590-31e7-
b0007b416f81
senorblanco@chromium.org [Tue, 2 Oct 2012 14:24:22 +0000 (14:24 +0000)]
When processing a morphology filter on the GPU, pass the processed texture,
not the original source texture.
Review URL: https://codereview.appspot.com/
6587057/
git-svn-id: http://skia.googlecode.com/svn/trunk@5766
2bbb7eff-a529-9590-31e7-
b0007b416f81
bungeman@google.com [Tue, 2 Oct 2012 13:40:30 +0000 (13:40 +0000)]
Roll gyp to 1509 for ninja compatibility.
https://codereview.appspot.com/
6588059/
git-svn-id: http://skia.googlecode.com/svn/trunk@5765
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Tue, 2 Oct 2012 12:32:22 +0000 (12:32 +0000)]
Fixed canvas creation in SampleApp
https://codereview.appspot.com/
6588061/
git-svn-id: http://skia.googlecode.com/svn/trunk@5764
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Tue, 2 Oct 2012 11:47:16 +0000 (11:47 +0000)]
Fixed memory leak in bitmaprect GM
https://codereview.appspot.com/
6593058/
git-svn-id: http://skia.googlecode.com/svn/trunk@5763
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Tue, 2 Oct 2012 02:01:24 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@5762
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 1 Oct 2012 20:31:56 +0000 (20:31 +0000)]
retool so we don't need to call SkCanvas::setDevice
Review URL: https://codereview.appspot.com/
6591054
git-svn-id: http://skia.googlecode.com/svn/trunk@5759
2bbb7eff-a529-9590-31e7-
b0007b416f81
scroggo@google.com [Mon, 1 Oct 2012 20:06:09 +0000 (20:06 +0000)]
Fix some bugs in our picture tools.
When doing tiled rendering in multiple threads, clone fPicture,
rather than the blank fPictureClones. Also fix a precedence
problem so we get the correct rectangle.
In render_pictures_main, call PictureRenderer::setup().
Review URL: https://codereview.appspot.com/
6585055
git-svn-id: http://skia.googlecode.com/svn/trunk@5758
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 1 Oct 2012 19:06:57 +0000 (19:06 +0000)]
Move android gl files from src/gpu/android to src/gpu/gl/android.
R=robertphillips@google.com
Review URL: https://codereview.appspot.com/
6590051
git-svn-id: http://skia.googlecode.com/svn/trunk@5757
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 1 Oct 2012 19:06:09 +0000 (19:06 +0000)]
Use setDevice rather than the removed setBitmapDevice.
R=reed@google.com
Review URL: https://codereview.appspot.com/
6588057
git-svn-id: http://skia.googlecode.com/svn/trunk@5756
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Mon, 1 Oct 2012 18:49:00 +0000 (18:49 +0000)]
Fix for typo in r5754
unreviewed
git-svn-id: http://skia.googlecode.com/svn/trunk@5755
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Mon, 1 Oct 2012 18:25:13 +0000 (18:25 +0000)]
Speculative render target ref/unref fixes
https://codereview.appspot.com/
6592051/
git-svn-id: http://skia.googlecode.com/svn/trunk@5754
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 1 Oct 2012 18:06:05 +0000 (18:06 +0000)]
delete obsolete/unused SkGpuCanvas
git-svn-id: http://skia.googlecode.com/svn/trunk@5752
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 1 Oct 2012 17:54:05 +0000 (17:54 +0000)]
1. remove references to (deprecated) SkGpuCanvas
2. remove references to setDevice (soon to be deprecated)
Review URL: https://codereview.appspot.com/
6597055
git-svn-id: http://skia.googlecode.com/svn/trunk@5751
2bbb7eff-a529-9590-31e7-
b0007b416f81
tfarina@chromium.org [Mon, 1 Oct 2012 16:39:06 +0000 (16:39 +0000)]
Add moc generated files to .gitignore.
So that git status is clean again.
R=tomhudson@google.com
Review URL: https://codereview.appspot.com/
6591045
git-svn-id: http://skia.googlecode.com/svn/trunk@5750
2bbb7eff-a529-9590-31e7-
b0007b416f81
tfarina@chromium.org [Mon, 1 Oct 2012 16:14:21 +0000 (16:14 +0000)]
views: Fix a typo in SkEvent.h
WndProc is not implemented by unix/linux and does not even compile fixing the
typoe, so just remove these function declarations.
R=bsalomon@google.com
Review URL: https://codereview.appspot.com/
6561062
git-svn-id: http://skia.googlecode.com/svn/trunk@5749
2bbb7eff-a529-9590-31e7-
b0007b416f81
bsalomon@google.com [Mon, 1 Oct 2012 15:39:22 +0000 (15:39 +0000)]
Change the ios sample app name.
Review URL: https://codereview.appspot.com/
6597053
git-svn-id: http://skia.googlecode.com/svn/trunk@5748
2bbb7eff-a529-9590-31e7-
b0007b416f81
junov@google.com [Mon, 1 Oct 2012 15:27:14 +0000 (15:27 +0000)]
Adding virtual method to SkDeferredCanvas::NotificationClient for signaling when commands are skipped due to the skip on clear optimization.
TEST=DeferredCanvas unit test
BUG=http://code.google.com/p/chromium/issues/detail?id=116840
Review URL: https://codereview.appspot.com/
6590050
git-svn-id: http://skia.googlecode.com/svn/trunk@5747
2bbb7eff-a529-9590-31e7-
b0007b416f81
reed@google.com [Mon, 1 Oct 2012 14:58:57 +0000 (14:58 +0000)]
re-land removal of setBitmapDevice
git-svn-id: http://skia.googlecode.com/svn/trunk@5746
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Mon, 1 Oct 2012 14:32:51 +0000 (14:32 +0000)]
Fixed bug in drawing of large bitmaps
https://codereview.appspot.com/
6595047/
git-svn-id: http://skia.googlecode.com/svn/trunk@5745
2bbb7eff-a529-9590-31e7-
b0007b416f81
robertphillips@google.com [Sun, 30 Sep 2012 21:05:15 +0000 (21:05 +0000)]
Rolling back r5732 due to Chrome Mac compiler issues
git-svn-id: http://skia.googlecode.com/svn/trunk@5744
2bbb7eff-a529-9590-31e7-
b0007b416f81
tfarina@chromium.org [Sun, 30 Sep 2012 11:30:01 +0000 (11:30 +0000)]
samplecode: Avoid temporary variables of SkString type.
Just like most of the other samples, just pass the name of the sample directly.
R=epoger@google.com
Review URL: https://codereview.appspot.com/
6572047
git-svn-id: http://skia.googlecode.com/svn/trunk@5743
2bbb7eff-a529-9590-31e7-
b0007b416f81
tfarina@chromium.org [Sat, 29 Sep 2012 13:17:16 +0000 (13:17 +0000)]
debugger: Remove obsolete TODO comment.
std::string usage was already replaced by SkString.
R=chudy@google.com, tomhudson@google.com
Review URL: https://codereview.appspot.com/
6596043
git-svn-id: http://skia.googlecode.com/svn/trunk@5738
2bbb7eff-a529-9590-31e7-
b0007b416f81
tfarina@chromium.org [Sat, 29 Sep 2012 12:40:30 +0000 (12:40 +0000)]
samplecode: Remove duplicated include of SkWindow.h from SampleApp.h
R=epoger@google.com
Review URL: https://codereview.appspot.com/
6566051
git-svn-id: http://skia.googlecode.com/svn/trunk@5737
2bbb7eff-a529-9590-31e7-
b0007b416f81
skia.committer@gmail.com [Sat, 29 Sep 2012 02:01:02 +0000 (02:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@5735
2bbb7eff-a529-9590-31e7-
b0007b416f81