platform/upstream/libSkiaSharp.git
12 years agoModify Read/WritePixelTests to print one pixel failure for each test case rather...
bsalomon@google.com [Fri, 17 Aug 2012 13:32:06 +0000 (13:32 +0000)]
Modify Read/WritePixelTests to print one pixel failure for each test case rather than every pixel

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

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

12 years agoMove tiling up into SampleWindow.
scroggo@google.com [Fri, 17 Aug 2012 13:29:50 +0000 (13:29 +0000)]
Move tiling up into SampleWindow.

Now the tiles do not move with the view, and tiling persists when changing slides.

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

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

12 years agoWhitespace change to trigger linux bot with proprietary ATI driver newly installed.
bsalomon@google.com [Fri, 17 Aug 2012 13:17:40 +0000 (13:17 +0000)]
Whitespace change to trigger linux bot with proprietary ATI driver newly installed.

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

12 years agoAdded Serialization of SkPath's bound
robertphillips@google.com [Fri, 17 Aug 2012 10:58:49 +0000 (10:58 +0000)]
Added Serialization of SkPath's bound

http://codereview.appspot.com/6458143/

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

12 years agoMore rebaselines from r5136
bsalomon@google.com [Thu, 16 Aug 2012 21:56:48 +0000 (21:56 +0000)]
More rebaselines from r5136

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

12 years agoremove EdgeType enum. Unimportant distinction, and removing speeds up quickReject
reed@google.com [Thu, 16 Aug 2012 20:53:31 +0000 (20:53 +0000)]
remove EdgeType enum. Unimportant distinction, and removing speeds up quickReject
Review URL: https://codereview.appspot.com/6448161

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

12 years agocleaned up algorithm codes and added 25th percentile for representation.
bensong@google.com [Thu, 16 Aug 2012 20:49:28 +0000 (20:49 +0000)]
cleaned up algorithm codes and added 25th percentile for representation.

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

12 years agoRebaseline gm due to r5136
bsalomon@google.com [Thu, 16 Aug 2012 20:42:40 +0000 (20:42 +0000)]
Rebaseline gm due to r5136

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

12 years agoFix a memory leak in SkBitmapHeap.
scroggo [Thu, 16 Aug 2012 20:30:18 +0000 (20:30 +0000)]
Fix a memory leak in SkBitmapHeap.

When I switched fLookupTable to be an array of pointers, I did not
delete those pointers when I was done with them. Do it now.

Also modify SkTDArray::deleteAll to call SkDELETE instead of delete.

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

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

12 years agoMake all GrContext draws go through the draw buffer.
bsalomon@google.com [Thu, 16 Aug 2012 18:36:06 +0000 (18:36 +0000)]
Make all GrContext draws go through the draw buffer.

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

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

12 years agoadd SK_ENABLE_CLIP_QUICKREJECT option (currently disabled)
reed@google.com [Thu, 16 Aug 2012 18:27:05 +0000 (18:27 +0000)]
add SK_ENABLE_CLIP_QUICKREJECT option (currently disabled)

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

12 years agoFix a parenthesis bug.
scroggo@google.com [Thu, 16 Aug 2012 17:56:49 +0000 (17:56 +0000)]
Fix a parenthesis bug.

SkGPipeCanvas::needOpBytes was being called with the wrong value due to a misplaced
parens in clipRect and clipPath. This can cause a crash if clip is called at just
the right (wrong) time. Instead of writing a boolean to the stream, I have added a
flag, which helps to avoid the parens problem.

Also renamed some flags from _DrawOpsFlag to _DrawOpFlag for consistency.

Lastly, added an assert that the size provided by the SkGPipeController is a multiple
of four.

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

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

12 years agoRemove SK_FONTHOST_WIN_DW define.
bungeman@google.com [Thu, 16 Aug 2012 17:35:58 +0000 (17:35 +0000)]
Remove SK_FONTHOST_WIN_DW define.

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

12 years agowe have no subclasses, so change protected to private.
reed@google.com [Thu, 16 Aug 2012 16:46:27 +0000 (16:46 +0000)]
we have no subclasses, so change protected to private.

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

12 years agoFix assertion in in order draw buffer
bsalomon@google.com [Thu, 16 Aug 2012 16:26:33 +0000 (16:26 +0000)]
Fix assertion in in order draw buffer

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

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

12 years agoDon't try to build SkFontHost_win_dw.cpp on non-Windows platforms.
bungeman@google.com [Thu, 16 Aug 2012 16:23:09 +0000 (16:23 +0000)]
Don't try to build SkFontHost_win_dw.cpp on non-Windows platforms.

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

12 years agoDirectWrite font host for skia.
bungeman@google.com [Thu, 16 Aug 2012 16:13:40 +0000 (16:13 +0000)]
DirectWrite font host for skia.
https://codereview.appspot.com/5417063/

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

12 years agoadd SkClipStack::clipEmpty() as an optimized way to say clipDevRect(empty, intersect)
reed@google.com [Thu, 16 Aug 2012 15:59:59 +0000 (15:59 +0000)]
add SkClipStack::clipEmpty() as an optimized way to say clipDevRect(empty, intersect)
if the caller knows up-front that it wants the clipstact to become empty.
Review URL: https://codereview.appspot.com/6443132

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

12 years agoFix overrun in aa rect renderer
bsalomon@google.com [Thu, 16 Aug 2012 15:28:54 +0000 (15:28 +0000)]
Fix overrun in aa rect renderer

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

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

12 years agoFix uninitialized color filter data on GrPaint
bsalomon@google.com [Thu, 16 Aug 2012 15:06:57 +0000 (15:06 +0000)]
Fix uninitialized color filter data on GrPaint

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

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

12 years agoCompilation fix for r5123 (disabling template inst count tracking)
robertphillips@google.com [Thu, 16 Aug 2012 15:04:34 +0000 (15:04 +0000)]
Compilation fix for r5123 (disabling template inst count tracking)

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

12 years agoExtended Inst counting to find "unknown" leaked object (SkTMaskGamma)
robertphillips@google.com [Thu, 16 Aug 2012 14:58:06 +0000 (14:58 +0000)]
Extended Inst counting to find "unknown" leaked object (SkTMaskGamma)

http://codereview.appspot.com/6453127/

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

12 years agoReplaced TextureCacheEntry with GrTexture* and a back pointer to GrResourceEntry...
robertphillips@google.com [Thu, 16 Aug 2012 14:49:16 +0000 (14:49 +0000)]
Replaced TextureCacheEntry with GrTexture* and a back pointer to GrResourceEntry (in GrTexture)

http://codereview.appspot.com/6460089/

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

12 years agoskdiff: recurse over subdirectories, unless --norecurse option is given
epoger@google.com [Thu, 16 Aug 2012 13:42:13 +0000 (13:42 +0000)]
skdiff: recurse over subdirectories, unless --norecurse option is given
in anticipation of https://code.google.com/p/skia/issues/detail?id=743 ('move gm baselines outside of trunk, and modify naming convention')
Review URL: https://codereview.appspot.com/6465053

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

12 years agochange tiling to 16 tiles instead of 4
reed@google.com [Wed, 15 Aug 2012 20:44:36 +0000 (20:44 +0000)]
change tiling to 16 tiles instead of 4

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

12 years agoProvide a key to go to the previous slide in SampleApp.
scroggo@google.com [Wed, 15 Aug 2012 20:03:06 +0000 (20:03 +0000)]
Provide a key to go to the previous slide in SampleApp.

The left key now mirrors the right key, and goes to the previous slide.
It used to change the device type, which can still be done by pressing
'd' or using the menu.

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

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

12 years agoFixing a deferred canvas optimization that purges pending draws when the canvas is...
junov@chromium.org [Wed, 15 Aug 2012 19:49:22 +0000 (19:49 +0000)]
Fixing a deferred canvas optimization that purges pending draws when the canvas is cleared

It appears that the recording canvas returns a save count of 1 when the save stack is empty.
In order to pass Canvas unit tests when a clear occurs, changes to SkGPipe were necessary
to allow SkDeferredCanvas to set the device bounds on the SkGPipeCanvas.  A positive
side effect of this change is that graphics primitives that fall outside of the device
bounds will now always be culled at the recording stage (as opposed playback).

BUG=http://code.google.com/p/skia/issues/detail?id=782
TEST=deferred_canvas_record bench test
Review URL: https://codereview.appspot.com/6454157

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

12 years agoUse SkCanvas::concat instead of SkCanvas::setMatrix so this GM can be tiled.
scroggo@google.com [Wed, 15 Aug 2012 18:42:45 +0000 (18:42 +0000)]
Use SkCanvas::concat instead of SkCanvas::setMatrix so this GM can be tiled.

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

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

12 years agoadded representation to xhtml title.
bensong@google.com [Wed, 15 Aug 2012 18:27:38 +0000 (18:27 +0000)]
added representation to xhtml title.

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

12 years agofixes elif bug.
bensong@google.com [Wed, 15 Aug 2012 17:55:42 +0000 (17:55 +0000)]
fixes elif bug.

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

12 years agoadds flag for choosing bench representative algorithm.
bensong@google.com [Wed, 15 Aug 2012 17:31:46 +0000 (17:31 +0000)]
adds flag for choosing bench representative algorithm.

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

12 years agoSkip tiled drawing in GM for magnifier image filter.
scroggo@google.com [Wed, 15 Aug 2012 16:32:19 +0000 (16:32 +0000)]
Skip tiled drawing in GM for magnifier image filter.

Merely skips the test until we get a real fix for the problem.

BUG=https://code.google.com/p/skia/issues/detail?id=781

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

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

12 years agoAdded virtual destructor to SkColorSpaceLuminance
robertphillips@google.com [Wed, 15 Aug 2012 14:52:58 +0000 (14:52 +0000)]
Added virtual destructor to SkColorSpaceLuminance

http://codereview.appspot.com/6459092/

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

12 years agoadd 't' to toggle tiling modes
reed@google.com [Wed, 15 Aug 2012 14:41:58 +0000 (14:41 +0000)]
add 't' to toggle tiling modes
Review URL: https://codereview.appspot.com/6446138

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

12 years agoAddressed Windows compiler complaints
robertphillips@google.com [Wed, 15 Aug 2012 14:36:41 +0000 (14:36 +0000)]
Addressed Windows compiler complaints

http://codereview.appspot.com/6462062/

This CL will require re-baselining of the imagemagnifier GM

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

12 years agoGrContextFactory can now expose the GLContext it is using.
keyar@chromium.org [Tue, 14 Aug 2012 22:02:48 +0000 (22:02 +0000)]
GrContextFactory can now expose the GLContext it is using.

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

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

12 years agorevert r5100 experiment
bsalomon@google.com [Tue, 14 Aug 2012 21:53:53 +0000 (21:53 +0000)]
revert r5100 experiment

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

12 years agoRevert GrTextureStripAtlas change due to performance concerns.
rileya@google.com [Tue, 14 Aug 2012 21:33:15 +0000 (21:33 +0000)]
Revert GrTextureStripAtlas change due to performance concerns.

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

12 years agoFix for GPU-less Linux build: move #include GrTextureStripAtlas into SK_SUPPORT_GPU...
rileya@google.com [Tue, 14 Aug 2012 21:14:08 +0000 (21:14 +0000)]
Fix for GPU-less Linux build: move #include GrTextureStripAtlas into SK_SUPPORT_GPU ifdefs. Unreviewed.

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

12 years agoMade gradient effects use GrTextureStripAtlas.
rileya@google.com [Tue, 14 Aug 2012 21:06:15 +0000 (21:06 +0000)]
Made gradient effects use GrTextureStripAtlas.
Review URL: https://codereview.appspot.com/6450131

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

12 years agoTemporary change to bench on android to run limited set of test in order to see wheth...
bsalomon@google.com [Tue, 14 Aug 2012 20:44:17 +0000 (20:44 +0000)]
Temporary change to bench on android to run limited set of test in order to see whether it allows bench to complete.

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

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

12 years agoEnsure that Pipe does not crash when attempting to draw after endRecording.
scroggo@google.com [Tue, 14 Aug 2012 20:38:28 +0000 (20:38 +0000)]
Ensure that Pipe does not crash when attempting to draw after endRecording.

Add a test for drawing a bitmap and a bitmapshader after endRecording.

BUG=https://code.google.com/p/skia/issues/detail?id=774&can=3
Test=PipeTest

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

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

12 years agoFixing source files that do not have newlines at the end.
rmistry@google.com [Tue, 14 Aug 2012 20:27:54 +0000 (20:27 +0000)]
Fixing source files that do not have newlines at the end.

Found using the new unsubmitted newline_checker slave script:
piraeus.cnc.corp.google.com:10125/builders/Skia_House_Keeping/builds/5/steps/shell_1/logs/stdio
Review URL: https://codereview.appspot.com/6443124

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

12 years agoprivatize SkScalerContext.h
reed@google.com [Tue, 14 Aug 2012 19:45:58 +0000 (19:45 +0000)]
privatize SkScalerContext.h

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

12 years agoBug Fix: Fixes transformation bug where debugger locked up during incremental draw...
chudy@google.com [Tue, 14 Aug 2012 19:38:31 +0000 (19:38 +0000)]
Bug Fix: Fixes transformation bug where debugger locked up during incremental draw due to nested clips not being cleared.

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

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

12 years agoBug Fix: Fixes incremental drawing in conjunction with the highlighting filter for...
chudy@google.com [Tue, 14 Aug 2012 19:36:09 +0000 (19:36 +0000)]
Bug Fix: Fixes incremental drawing in conjunction with the highlighting filter for the OpenGL widget.

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

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

12 years agoRefactored inspector widget such that creating custom tabs for information is straigh...
chudy@google.com [Tue, 14 Aug 2012 19:34:13 +0000 (19:34 +0000)]
Refactored inspector widget such that creating custom tabs for information is straightforward for future developers.

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

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

12 years agoFix broken test.
scroggo@google.com [Tue, 14 Aug 2012 19:30:20 +0000 (19:30 +0000)]
Fix broken test.

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

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

12 years agoMove write buffer flags used by SkFlataData::Create into SkFlatController.
scroggo@google.com [Tue, 14 Aug 2012 19:22:05 +0000 (19:22 +0000)]
Move write buffer flags used by SkFlataData::Create into SkFlatController.

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

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

12 years agoTo allow forward declarations, move SkScalerContext::Rec to SkScalerContextRec
reed@google.com [Tue, 14 Aug 2012 19:13:55 +0000 (19:13 +0000)]
To allow forward declarations, move SkScalerContext::Rec to SkScalerContextRec
Review URL: https://codereview.appspot.com/6462059

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

12 years agoReduce number of paths created by benchs
bsalomon@google.com [Tue, 14 Aug 2012 17:49:46 +0000 (17:49 +0000)]
Reduce number of paths created by benchs

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

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

12 years agoRemove baseline for flaky test.
scroggo@google.com [Tue, 14 Aug 2012 17:47:43 +0000 (17:47 +0000)]
Remove baseline for flaky test.

This test goes back and forth, slightly changing the location of a
rectangle, only on this bot. Remove the baseline so we no longer
see the noise.

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

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

12 years agoprivatize SkDescriptor.h
reed@google.com [Tue, 14 Aug 2012 17:41:34 +0000 (17:41 +0000)]
privatize SkDescriptor.h

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

12 years agoIn SkGPipeCanvas, rename fSharedHeap to fBitmapHeap
scroggo@google.com [Tue, 14 Aug 2012 17:21:34 +0000 (17:21 +0000)]
In SkGPipeCanvas, rename fSharedHeap to fBitmapHeap

to reflect the fact that it is only used for storing bitmaps.

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

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

12 years agoMake SkTArray consider only the new count and reserve when determining how much to...
bsalomon@google.com [Tue, 14 Aug 2012 17:19:08 +0000 (17:19 +0000)]
Make SkTArray consider only the new count and reserve when determining how much to alloc
Review URL: http://codereview.appspot.com/6459084

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

12 years agoBug Fix: Resets the users zoom and translation every picture load. Was acting inconsi...
chudy@google.com [Tue, 14 Aug 2012 16:00:32 +0000 (16:00 +0000)]
Bug Fix: Resets the users zoom and translation every picture load. Was acting inconsistently between different viewing widgets, now forces a redraw every new picture.

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

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

12 years agoUse SkBitmapHeap for shaders in SkGPipe.
scroggo@google.com [Tue, 14 Aug 2012 15:48:43 +0000 (15:48 +0000)]
Use SkBitmapHeap for shaders in SkGPipe.

Required adding a new feature to SkBitmapHeap, allowing it to defer
adding owners, since sometimes we flatten a shader, but then do not
unflatten it, since we already had a copy in the heap, so the owners
never get removed.

Reviewed at https://codereview.appspot.com/6464053/

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

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

12 years agoCheck in r5063 again, along with fix for tests.
scroggo@google.com [Tue, 14 Aug 2012 15:20:01 +0000 (15:20 +0000)]
Check in r5063 again, along with fix for tests.

Thank you to Android build, for catching the problem, which would
show up elsewhere. Now we access entry->fStorageSlot before
deleting entry.

(Original message:)
Use the SkBitmapHeap to handle SkBitmaps in SkGPipe cross process.

Required moving the LRU handles from SkBitmapHeapEntry to LookupEntry.

Allows simplification of drawBitmap* calls in SkGPipeCanvas.

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

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

12 years agoReduce allocations in RandomPathBench
bsalomon@google.com [Tue, 14 Aug 2012 15:10:09 +0000 (15:10 +0000)]
Reduce allocations in RandomPathBench

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

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

12 years agoClean up most clang warnings outside animator/
tomhudson@google.com [Tue, 14 Aug 2012 15:03:35 +0000 (15:03 +0000)]
Clean up most clang warnings outside animator/

http://codereview.appspot.com/6464058/

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

12 years agoAugmenting SkDeferredCanvas notification interface to signal flushes and memory alloc...
junov@chromium.org [Tue, 14 Aug 2012 13:36:26 +0000 (13:36 +0000)]
Augmenting SkDeferredCanvas notification interface to signal flushes and memory allocations
Renamed SkDeferredCanvas::DeviceContext to SkDeferredCanvas::NotificationClient

BUG=http://code.google.com/p/chromium/issues/detail?id=136828
TEST=Added coverage for new API to DeferredCanvas unit test. Added DeferredCanvas bench test to track deferred canvas overhead cost.
Review URL: https://codereview.appspot.com/6442108

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

12 years agoadd LF at the end, for clanginess
reed@google.com [Tue, 14 Aug 2012 13:22:16 +0000 (13:22 +0000)]
add LF at the end, for clanginess

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

12 years agoAdd inst counting to bench and count SkPaths
bsalomon@google.com [Tue, 14 Aug 2012 13:15:44 +0000 (13:15 +0000)]
Add inst counting to bench and count SkPaths

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

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

12 years agodelete empty file
mike@reedtribe.org [Tue, 14 Aug 2012 01:30:34 +0000 (01:30 +0000)]
delete empty file

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

12 years agooops, revert the flake on the win shuttle
mike@reedtribe.org [Tue, 14 Aug 2012 01:25:42 +0000 (01:25 +0000)]
oops, revert the flake on the win shuttle

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

12 years agoremove as flake?
mike@reedtribe.org [Tue, 14 Aug 2012 01:12:43 +0000 (01:12 +0000)]
remove as flake?

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

12 years agoStop bench from leaking
bsalomon@google.com [Mon, 13 Aug 2012 22:10:05 +0000 (22:10 +0000)]
Stop bench from leaking
Review URL: http://codereview.appspot.com/6465045/

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

12 years agoMac 10.6 build fix: got rid of now-unecessary GrTextureStripAtlas tex cache id compon...
rileya@google.com [Mon, 13 Aug 2012 21:03:39 +0000 (21:03 +0000)]
Mac 10.6 build fix: got rid of now-unecessary GrTextureStripAtlas tex cache id component. Unreviewed.

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

12 years agoAdded GrTextureStripAtlas object.
rileya@google.com [Mon, 13 Aug 2012 20:28:48 +0000 (20:28 +0000)]
Added GrTextureStripAtlas object.
Review URL: https://codereview.appspot.com/6457099

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

12 years agoCorrectly linearize Windows AA from ClearType.
bungeman@google.com [Mon, 13 Aug 2012 20:01:51 +0000 (20:01 +0000)]
Correctly linearize Windows AA from ClearType.
http://codereview.appspot.com/6446129/

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

12 years agoRevert r5063 until unit tests can be fixed.
tomhudson@google.com [Mon, 13 Aug 2012 18:20:14 +0000 (18:20 +0000)]
Revert r5063 until unit tests can be fixed.

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

12 years agoMove resize functionality out of createAndLockTexture and into createResizedTexture
robertphillips@google.com [Mon, 13 Aug 2012 18:00:36 +0000 (18:00 +0000)]
Move resize functionality out of createAndLockTexture and into createResizedTexture

http://codereview.appspot.com/6459080/

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

12 years agoSplit cache-specific fields out of GrTextureDesc
robertphillips@google.com [Mon, 13 Aug 2012 17:47:59 +0000 (17:47 +0000)]
Split cache-specific fields out of GrTextureDesc

http://codereview.appspot.com/6448143/

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

12 years agoReduce path_copy iteration count, hopefully allows nexus s bot to complete without...
bsalomon@google.com [Mon, 13 Aug 2012 16:59:21 +0000 (16:59 +0000)]
Reduce path_copy iteration count, hopefully allows nexus s bot to complete without OOM.

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

12 years agoUse the SkBitmapHeap to handle SkBitmaps in SkGPipe cross process.
scroggo@google.com [Mon, 13 Aug 2012 16:39:42 +0000 (16:39 +0000)]
Use the SkBitmapHeap to handle SkBitmaps in SkGPipe cross process.

Required moving the LRU handles from SkBitmapHeapEntry to LookupEntry.

Allows simplification of drawBitmap* calls in SkGPipeCanvas.

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

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

12 years ago(Attempt to) fix Android build from r5056, thanks to suggestion by senorblanco@.
tomhudson@google.com [Mon, 13 Aug 2012 15:48:18 +0000 (15:48 +0000)]
(Attempt to) fix Android build from r5056, thanks to suggestion by senorblanco@.

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

12 years agoFix Windows build from r5056.
tomhudson@google.com [Mon, 13 Aug 2012 15:16:42 +0000 (15:16 +0000)]
Fix Windows build from r5056.
We don't use STL, so std::min and std::max won't compile.
This new effect still does some undisciplined mixing of float and scalar which deserves
to be cleaned up.

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

12 years agoUpdated gpu.gyp to move GrCacheID.h from src\gpu to include\gpu
robertphillips@google.com [Mon, 13 Aug 2012 14:46:35 +0000 (14:46 +0000)]
Updated gpu.gyp to move GrCacheID.h from src\gpu to include\gpu

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

12 years agoFix GPU-less build from r5056.
bsalomon@google.com [Mon, 13 Aug 2012 14:31:30 +0000 (14:31 +0000)]
Fix GPU-less build from r5056.

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

12 years agoEffects Bug Fix
chudy@google.com [Mon, 13 Aug 2012 14:26:36 +0000 (14:26 +0000)]
Effects Bug Fix

Certain compilers in an effort to optimize code chop off files that are never
used. By adding a flag to common conditions and variables we can force skia to
recompile with global static initializers off. By making a call to
SkGraphics::Init we now register all those functions that had been previously
automatically excluded by the compiler.

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

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

12 years agoAdd a zoom filter to Skia. This will be used on ChromeOS to implement the screen...
bsalomon@google.com [Mon, 13 Aug 2012 14:22:17 +0000 (14:22 +0000)]
Add a zoom filter to Skia. This will be used on ChromeOS to implement the screen magnifier.

Committed on behalf of zork@chromium.org

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

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

12 years agoarm: dynamic NEON support for SkBitmapProcState functions.
digit@google.com [Mon, 13 Aug 2012 14:06:34 +0000 (14:06 +0000)]
arm: dynamic NEON support for SkBitmapProcState functions.

This patch does the following:

  - Move the NEON-specific code from src/core/SkBitmapProcState_filter.h
    to src/opts/SkBitmapProcState_filter_neon.h

  - Implement the NEON-specific functions in the new source file
    src/opts/SkBitmapProcState_opts_arm_neon.cpp, added to the "opts_neon"
    static library target. All functions now use the _neon suffix, even
    in full-NEON builds.

  - Move most of the content of src/core/SkBitmapProcState.cpp to a
    new header: src/core/SkBitmapProcState_procs.h

This header is included by two source files:

  src/core/SkBitmapProcState.cpp, to define the regular functions.
  src/opts/SkBitmapProcState_opts_arm_neon.cpp to define NEON ones.

This is to deal with the fact that all NEON functions now
use the _neon suffix, even in SK_ARM_NEON_IS_ALWAYS mode,
and to be able to include the same header twice in the
SK_ARM_NEON_IS_DYNAMIC case.
Review URL: https://codereview.appspot.com/6449117

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

12 years agoAdds a bunch of benchmarks around creating, transforming, testing path equality,
bsalomon@google.com [Mon, 13 Aug 2012 14:03:31 +0000 (14:03 +0000)]
Adds a bunch of benchmarks around creating, transforming, testing path equality,
and concatting paths. Also allows benchs to do setup / tear down steps outside
of the cons/destructor via new SkBenchmark virtuals.

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

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

12 years agosuppress pip for now, since we use locally-defined effects
mike@reedtribe.org [Mon, 13 Aug 2012 01:57:05 +0000 (01:57 +0000)]
suppress pip for now, since we use locally-defined effects

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

12 years agoadjust size to match the content
mike@reedtribe.org [Mon, 13 Aug 2012 01:13:38 +0000 (01:13 +0000)]
adjust size to match the content

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

12 years agomove texteffects from Sample to gm
mike@reedtribe.org [Mon, 13 Aug 2012 00:52:07 +0000 (00:52 +0000)]
move texteffects from Sample to gm

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

12 years agoprivatize SkBuffer.h
mike@reedtribe.org [Mon, 13 Aug 2012 00:01:39 +0000 (00:01 +0000)]
privatize SkBuffer.h

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

12 years agoprivatize SkRefDict.h
mike@reedtribe.org [Sun, 12 Aug 2012 23:45:04 +0000 (23:45 +0000)]
privatize SkRefDict.h

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

12 years agoprivatize SkGlyph.h
mike@reedtribe.org [Sun, 12 Aug 2012 19:43:52 +0000 (19:43 +0000)]
privatize SkGlyph.h

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

12 years agoprivatize SkPtrRecorder.h
mike@reedtribe.org [Sun, 12 Aug 2012 19:34:07 +0000 (19:34 +0000)]
privatize SkPtrRecorder.h

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

12 years agorefactor some subclasses in SkFlattenable.h into SkPtrRecorder.h, in preparation for
mike@reedtribe.org [Sun, 12 Aug 2012 19:25:08 +0000 (19:25 +0000)]
refactor some subclasses in SkFlattenable.h into SkPtrRecorder.h, in preparation for
privatizing SkPtrRecorder.h

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

12 years agoprivatize SkDeviceProfile.h
mike@reedtribe.org [Sun, 12 Aug 2012 19:13:13 +0000 (19:13 +0000)]
privatize SkDeviceProfile.h

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

12 years agorevert arith change, until I can rebaseline all the images (and check chrome)
mike@reedtribe.org [Sun, 12 Aug 2012 19:08:41 +0000 (19:08 +0000)]
revert arith change, until I can rebaseline all the images (and check chrome)

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

12 years agouse premul macro to pack components
mike@reedtribe.org [Sun, 12 Aug 2012 18:50:34 +0000 (18:50 +0000)]
use premul macro to pack components

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

12 years agoFix handling of infinite bounds during "fast transforms".
tomhudson@google.com [Fri, 10 Aug 2012 14:10:45 +0000 (14:10 +0000)]
Fix handling of infinite bounds during "fast transforms".

http://codereview.appspot.com/6449125/

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

12 years agoEnable 32/64-bit gyp switch on Linux
borenet@google.com [Thu, 9 Aug 2012 20:44:32 +0000 (20:44 +0000)]
Enable 32/64-bit gyp switch on Linux

Linux defaults to 64, other platforms 32.  As of this change, only Mac and
Linux are affected by the skia_arch_width flag.  Next step is to make Win
work as well.
Review URL: https://codereview.appspot.com/6460066

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

12 years agoprivatize SkBlitter.h
reed@google.com [Thu, 9 Aug 2012 20:32:43 +0000 (20:32 +0000)]
privatize SkBlitter.h

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

12 years agoremove unused local var (warning fix)
reed@google.com [Thu, 9 Aug 2012 20:30:07 +0000 (20:30 +0000)]
remove unused local var (warning fix)

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

12 years agoprivatize SkScan.h
reed@google.com [Thu, 9 Aug 2012 20:08:13 +0000 (20:08 +0000)]
privatize SkScan.h

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

12 years agouse SkRegion instead of SkScan/SkBlitter, as we want to privatize the latter
reed@google.com [Thu, 9 Aug 2012 19:18:02 +0000 (19:18 +0000)]
use SkRegion instead of SkScan/SkBlitter, as we want to privatize the latter

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