robertphillips@google.com
a9b0623eac
Added find, lock to GrContext & GrResourceCache interfaces
...
https://codereview.appspot.com/6499052/
git-svn-id: http://skia.googlecode.com/svn/trunk@5343 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-30 11:06:31 +00:00
robertphillips@google.com
9cb5adf50d
Minor refactoring of GrClipMaskManager::clipMaskPreamble
...
https://codereview.appspot.com/6495052/
git-svn-id: http://skia.googlecode.com/svn/trunk@5342 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-30 11:05:08 +00:00
bsalomon@google.com
405d0f43d8
In which a series of things around attachToCanvas and writePixels are fixed
...
Review URL: https://codereview.appspot.com/6506051/
git-svn-id: http://skia.googlecode.com/svn/trunk@5341 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-29 21:26:13 +00:00
reed@google.com
bae9ff70d9
SkDraw's constructor zero's is fields, so don't do it outside
...
git-svn-id: http://skia.googlecode.com/svn/trunk@5340 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-29 20:23:24 +00:00
reed@google.com
c07448fd72
check for exceeding int range when we stash the values in the cache
...
git-svn-id: http://skia.googlecode.com/svn/trunk@5339 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-29 19:46:06 +00:00
bsalomon@google.com
c2a2483bbe
Clear SkCanvas::fLastDeviceToGainFocus when releasing a device
...
Review URL: https://codereview.appspot.com/6499051/
git-svn-id: http://skia.googlecode.com/svn/trunk@5338 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-29 19:40:59 +00:00
bsalomon@google.com
d9e0181405
Linux warning fixes
...
Review URL: https://codereview.appspot.com/6500045/
git-svn-id: http://skia.googlecode.com/svn/trunk@5337 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-29 19:35:44 +00:00
djsollen@google.com
57cdcc091b
Change Arabic sample character from 0x0600 to 0x0627.
...
Arabic font on some devices doesn't have 0x0600 glyph and is not correctly
handled by complex text path.
BUG=6772513
Review URL: https://codereview.appspot.com/6497053
git-svn-id: http://skia.googlecode.com/svn/trunk@5336 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-29 19:08:50 +00:00
djsollen@google.com
c9ab987efc
Implement multi-threaded picture playback via cloning.
...
The CL adds SkPicture.clone() which produces a thread-safe copy by
creating a shallow copy of the thread-safe data within the picture and
a deep copy of the data that is not (e.g. SkPaint). This implementation
re-flattens the paints when cloning instead of retaining the flattened
paints from the recording process.
Changes were also needed to various classes to ensure thread safety
Review URL: https://codereview.appspot.com/6459105
git-svn-id: http://skia.googlecode.com/svn/trunk@5335 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-29 18:52:07 +00:00
rileya@google.com
b947b91794
Fix uninitialized values in bench_pictures' tiled renderer.
...
Review URL: https://codereview.appspot.com/6506049
git-svn-id: http://skia.googlecode.com/svn/trunk@5333 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-29 17:35:07 +00:00
bsalomon@google.com
4af0af612f
Add helpers to add/modulate glsl vec4s.
...
Review URL: https://codereview.appspot.com/6497046/
git-svn-id: http://skia.googlecode.com/svn/trunk@5332 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-29 12:59:57 +00:00
robertphillips@google.com
1fcc1b8099
Moved GrClipMaskCache to its own files
...
https://codereview.appspot.com/6496055/
git-svn-id: http://skia.googlecode.com/svn/trunk@5331 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-29 12:52:05 +00:00
bsalomon@google.com
5e497329bb
Fix int64->int32 warning
...
git-svn-id: http://skia.googlecode.com/svn/trunk@5330 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 21:45:26 +00:00
bsalomon@google.com
0d82fe5a4b
Add "class" missing from "friend class". How did this compile on windows?
...
git-svn-id: http://skia.googlecode.com/svn/trunk@5329 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 21:39:15 +00:00
bsalomon@google.com
f660187980
Hide GrDrawTarget::Caps's member vars
...
Review URL: https://codereview.appspot.com/6499044
git-svn-id: http://skia.googlecode.com/svn/trunk@5328 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 21:11:35 +00:00
caryclark@google.com
a7e483d130
shape ops work in progress
...
working on quad/quad intersection
git-svn-id: http://skia.googlecode.com/svn/trunk@5326 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 20:44:43 +00:00
vandebo@chromium.org
8b6d6286b6
Normalize font BBox to make sure it's correct when rendering a PDF on the mac.
...
Original CL by abodenha@chromium.org: https://codereview.appspot.com/6501049/
BUG=crbug.com/124572
Review URL: https://codereview.appspot.com/6492048
git-svn-id: http://skia.googlecode.com/svn/trunk@5325 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 19:47:43 +00:00
scroggo@google.com
3961aac79e
Reenable pipe for imagefiltersgraph GM on Android.
...
This test was fixed with r5269.
Review URL: https://codereview.appspot.com/6490045
git-svn-id: http://skia.googlecode.com/svn/trunk@5324 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 19:34:44 +00:00
rileya@google.com
edfbff683e
Change picture record benchmark to include begin/end record in timings and make the source picture draw itself into record canvas, so it records the draws instead of directly copying the picture.
...
Review URL: https://codereview.appspot.com/6501045
git-svn-id: http://skia.googlecode.com/svn/trunk@5323 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 19:13:39 +00:00
bsalomon@google.com
34bcb9f803
Some GrGLShaderBuilder cleanup
...
Review URL: https://codereview.appspot.com/6500043/
git-svn-id: http://skia.googlecode.com/svn/trunk@5322 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 18:20:18 +00:00
borenet@google.com
3578eb7d06
Move gm baselines from trunk/gm to gm-expected
...
- Move images
- Update build slaves with the change
- Update baseline tools with the change
git-svn-id: http://skia.googlecode.com/svn/trunk@5319 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 16:53:10 +00:00
bungeman@google.com
1bfe01d06b
When creating gray from lcd, use luminance instead of coverage.
...
https://codereview.appspot.com/6496048/
git-svn-id: http://skia.googlecode.com/svn/trunk@5318 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 16:02:42 +00:00
reed@google.com
9c72827f90
disable pipe for now
...
git-svn-id: http://skia.googlecode.com/svn/trunk@5317 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 15:54:54 +00:00
digit@google.com
536079b209
Fix Clang build on Android.
...
The optimize attribute is not supported with Clang/ARM r161757.
This warning, turned into an error, is emitted by -Wattribute (implicitly set).
Review URL: https://codereview.appspot.com/6489045
git-svn-id: http://skia.googlecode.com/svn/trunk@5316 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 15:22:37 +00:00
borenet@google.com
0dd5ceb6d6
Fix ANGLE build
...
Review URL: https://codereview.appspot.com/6498045
git-svn-id: http://skia.googlecode.com/svn/trunk@5315 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 15:15:49 +00:00
bsalomon@google.com
8090e651fc
Make the SkGrPixelRef be responsible for unlocking device's scratch texture in the cache
...
Review URL: https://codereview.appspot.com/6498046/
git-svn-id: http://skia.googlecode.com/svn/trunk@5313 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 15:07:11 +00:00
rileya@google.com
5ee3f67ce3
Added an overload of SkTQSort that sorts an array of values, rather than an array of pointers.
...
Also added some parentheses to all the QSort variants to get rid of a gcc warning.
Review URL: https://codereview.appspot.com/6492044
git-svn-id: http://skia.googlecode.com/svn/trunk@5311 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 14:40:49 +00:00
bsalomon@google.com
d0f3f6825b
Fix dumb bug: redundant runs of upm<->pm roundtrip test
...
Review URL: https://codereview.appspot.com/6498043/
git-svn-id: http://skia.googlecode.com/svn/trunk@5310 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 13:08:14 +00:00
reed@google.com
7edfb4939e
need to declare INHERITED for the instcount macros
...
git-svn-id: http://skia.googlecode.com/svn/trunk@5309 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 12:48:35 +00:00
reed@google.com
fd875e8014
re-enable inst counting
...
git-svn-id: http://skia.googlecode.com/svn/trunk@5308 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 12:43:54 +00:00
bsalomon@google.com
a292112154
Remove SkGpuDevice::fTexture, use new pixel ref class name
...
Review URL: https://codereview.appspot.com/6474068/
git-svn-id: http://skia.googlecode.com/svn/trunk@5307 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 12:34:17 +00:00
reed@google.com
97af1a64ae
Add caching of the snapshot image form a surface
...
Notify the surface when the canvas draws into it, so it can invalidate the
cached image, and (if needed) perform a copy-on-write on the surface if it
was being shared with the image.
Review URL: https://codereview.appspot.com/6441115
git-svn-id: http://skia.googlecode.com/svn/trunk@5306 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 12:19:02 +00:00
robertphillips@google.com
91ee3a11ed
Added second "truncated" cpu/wall timer to bench
...
http://codereview.appspot.com/6476064/
This CL will increase the bench baselines across the board
git-svn-id: http://skia.googlecode.com/svn/trunk@5305 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 12:18:40 +00:00
robertphillips@google.com
2af1b188aa
Added default to switch to stop compiler failure in Chrome (unreviewed)
...
GrConfigConversionEffect.cpp:33:21: error: enumeration values 'kNone_PMConversion' and 'kPMConversionCnt' not handled in switch [-Werror,-Wswitch]
git-svn-id: http://skia.googlecode.com/svn/trunk@5304 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-28 11:23:09 +00:00
reed@google.com
99dc22df19
remove these (flakes)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@5296 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-27 20:30:25 +00:00
reed@google.com
fda2caab5b
rebaseline after text-gamma change
...
git-svn-id: http://skia.googlecode.com/svn/trunk@5295 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-27 20:23:57 +00:00
reed@google.com
4a42643a0f
rebaseline after text-gamma change
...
git-svn-id: http://skia.googlecode.com/svn/trunk@5294 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-27 20:19:43 +00:00
reed@google.com
eb5f7fec3d
rebaseline after text gamma change
...
git-svn-id: http://skia.googlecode.com/svn/trunk@5293 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-27 20:10:48 +00:00
george@mozilla.com
cb39ee645a
Add a new SkMemory implementation that uses mozalloc instead of malloc
...
git-svn-id: http://skia.googlecode.com/svn/trunk@5292 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-27 19:56:43 +00:00
borenet@google.com
405ebbcade
Script to help cycle skia-autogen
...
Review URL: https://codereview.appspot.com/6481066
git-svn-id: http://skia.googlecode.com/svn/trunk@5291 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-27 19:37:48 +00:00
george@mozilla.com
7c207e7435
Explicitly cast to uin16_t to avoid an invalid implicit type narrowing.
...
This was causing a build failure on OS X for us:
SkOTTable_head.h:124:72: error: non-type template argument evaluates to -2, which cannot be narrowed to type 'uint16_t' (aka 'unsigned short') [-Wc++11-narrowing]
Review URL: https://codereview.appspot.com/6482067
git-svn-id: http://skia.googlecode.com/svn/trunk@5290 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-27 19:31:10 +00:00
robertphillips@google.com
e7e4425f4a
Added cros_daisy to build bots list
...
https://codereview.appspot.com/6481069/
git-svn-id: http://skia.googlecode.com/svn/trunk@5289 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-27 17:57:58 +00:00
caryclark@google.com
9e49fb63d3
shape ops work in progress
...
add copyrights everywhere
start working on quadratic line segments (for quad intersection)
git-svn-id: http://skia.googlecode.com/svn/trunk@5286 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-27 14:11:33 +00:00
borenet@google.com
98a9e1f958
Change comment in PointTest to refer to GCC bug
...
git-svn-id: http://skia.googlecode.com/svn/trunk@5285 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-27 13:14:46 +00:00
bsalomon@google.com
a04e8e8424
Do premul and r/b swap conversions in a custom effect
...
Review URL: https://codereview.appspot.com/6473060/
git-svn-id: http://skia.googlecode.com/svn/trunk@5284 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-27 12:53:13 +00:00
bungeman@google.com
b7b5d93359
Fix PointTest.
...
https://codereview.appspot.com/6486062/
git-svn-id: http://skia.googlecode.com/svn/trunk@5283 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-24 19:53:58 +00:00
bungeman@google.com
6e59e498e5
Rebaseline for r5280.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@5281 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-24 19:49:29 +00:00
bungeman@google.com
fd668cfffe
Fix greenish text rendering on Linux.
...
https://codereview.appspot.com/6484048/
git-svn-id: http://skia.googlecode.com/svn/trunk@5280 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-24 17:46:11 +00:00
rmistry@google.com
0032407e29
Created to fix http://code.google.com/p/skia/issues/detail?id=817 : UpdateDoxygen step does not fail when Doxygen step fails.
...
Review URL: https://codereview.appspot.com/6480060
git-svn-id: http://skia.googlecode.com/svn/trunk@5278 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-24 17:16:05 +00:00
caryclark@google.com
3350c3c68a
shape ops work in progress
...
this fixes quad/line intersection
git-svn-id: http://skia.googlecode.com/svn/trunk@5277 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-08-24 15:24:36 +00:00