platform/upstream/libSkiaSharp.git
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

12 years agoshape ops work in progress
caryclark@google.com [Thu, 9 Aug 2012 18:17:47 +0000 (18:17 +0000)]
shape ops work in progress
milestone: about 1.6M tests pass

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

12 years agoAdded method of getting top genID from SkClipStack
robertphillips@google.com [Thu, 9 Aug 2012 18:10:49 +0000 (18:10 +0000)]
Added method of getting top genID from SkClipStack

http://codereview.appspot.com/6446108/

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

12 years agoremove SkShape (unused)
reed@google.com [Thu, 9 Aug 2012 18:05:33 +0000 (18:05 +0000)]
remove SkShape (unused)
Review URL: https://codereview.appspot.com/6461069

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

12 years agoSet bench/gm/tests as explicit dependencies of SkiaAndroidApp (trunk)
borenet@google.com [Thu, 9 Aug 2012 15:54:28 +0000 (15:54 +0000)]
Set bench/gm/tests as explicit dependencies of SkiaAndroidApp (trunk)

Hopefully this fixes the flaky Android build.
Review URL: https://codereview.appspot.com/6461067

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

12 years agoAdded resource domain to GrTextureDesc
robertphillips@google.com [Thu, 9 Aug 2012 10:49:39 +0000 (10:49 +0000)]
Added resource domain to GrTextureDesc

https://codereview.appspot.com/6459062/

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

12 years agoprivatize SkEdgeClipper.h
mike@reedtribe.org [Thu, 9 Aug 2012 01:26:07 +0000 (01:26 +0000)]
privatize SkEdgeClipper.h

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

12 years agoremoved SkPerspIter.h
mike@reedtribe.org [Thu, 9 Aug 2012 01:05:35 +0000 (01:05 +0000)]
removed SkPerspIter.h

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

12 years agoprivatization of SkPerspIter.h
mike@reedtribe.org [Thu, 9 Aug 2012 01:01:38 +0000 (01:01 +0000)]
privatization of SkPerspIter.h
remove obsolete SkRelay.h

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

12 years agoprivatization -- moving headers out of include into src
mike@reedtribe.org [Thu, 9 Aug 2012 00:49:00 +0000 (00:49 +0000)]
privatization -- moving headers out of include into src

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

12 years agoFix the Android build.
digit@google.com [Wed, 8 Aug 2012 22:58:40 +0000 (22:58 +0000)]
Fix the Android build.

Sorry, the offending line should have been part of a different patch.
Review URL: https://codereview.appspot.com/6448129

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

12 years agoarm: dynamic NEON support for SkBlitRow_opts_arm.cpp
digit@google.com [Wed, 8 Aug 2012 22:06:29 +0000 (22:06 +0000)]
arm: dynamic NEON support for SkBlitRow_opts_arm.cpp

This patch moves all NEON-specific code from the source
src/opts/SkBlitRow_opts_arm.cpp into a new file that is
built as part of the 'opts_arm_neon' static library.
Review URL: https://codereview.appspot.com/6449110

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

12 years agoMake SkGPipe use SkBitmapHeap.
scroggo@google.com [Wed, 8 Aug 2012 20:43:22 +0000 (20:43 +0000)]
Make SkGPipe use SkBitmapHeap.

In the single process (or hypothetical cross process/shared address
space) mode, SkGPipe now uses SkBitmapHeap instead of SharedHeap.

Still need to use the shared heap for shaders as well as for cross
process.

TEST=PipeTest

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

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

12 years agosplit out src file names into core.gypi, with an eye towards sharing that
reed@google.com [Wed, 8 Aug 2012 20:39:17 +0000 (20:39 +0000)]
split out src file names into core.gypi, with an eye towards sharing that
file with chrome...
Review URL: https://codereview.appspot.com/6446103

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

12 years agoskdiff: clean up isPathAbsolute check for Windows
epoger@google.com [Wed, 8 Aug 2012 13:47:39 +0000 (13:47 +0000)]
skdiff: clean up isPathAbsolute check for Windows

This is a followup to https://codereview.appspot.com/6458046/ ('Fix skdiff when using windows path that begins with a drive letter')
Review URL: https://codereview.appspot.com/6450106

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

12 years agoGrCacheID.h must reside in include\gpu due to inclusion by GrTexture.h
robertphillips@google.com [Wed, 8 Aug 2012 11:07:55 +0000 (11:07 +0000)]
GrCacheID.h must reside in include\gpu due to inclusion by GrTexture.h

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

12 years agoRefactored cacheID in preparation for clip mask caching changes
robertphillips@google.com [Wed, 8 Aug 2012 10:42:44 +0000 (10:42 +0000)]
Refactored cacheID in preparation for clip mask caching changes

http://codereview.appspot.com/6458089/

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

12 years agoremove until we fix the flake for msaa16
reed@google.com [Wed, 8 Aug 2012 00:22:38 +0000 (00:22 +0000)]
remove until we fix the flake for msaa16

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

12 years agomove SkSqrt32 back into SkMath.h -- was referenced in SkEmbossMask.cpp
reed@google.com [Tue, 7 Aug 2012 21:48:01 +0000 (21:48 +0000)]
move SkSqrt32 back into SkMath.h -- was referenced in SkEmbossMask.cpp

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

12 years ago#include "SkMathPriv.h"
reed@google.com [Tue, 7 Aug 2012 21:44:47 +0000 (21:44 +0000)]
#include "SkMathPriv.h"

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

12 years agoPrivatize SkAutoKern.h
reed@google.com [Tue, 7 Aug 2012 21:41:42 +0000 (21:41 +0000)]
Privatize SkAutoKern.h

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

12 years agoPrivatization:
reed@google.com [Tue, 7 Aug 2012 21:35:13 +0000 (21:35 +0000)]
Privatization:
move SkFDot.h to private
move parts of SkMath.h into SkMathPriv.h
Review URL: https://codereview.appspot.com/6461045

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

12 years agoshape ops work in progress
caryclark@google.com [Tue, 7 Aug 2012 21:25:27 +0000 (21:25 +0000)]
shape ops work in progress
milestone: all rect tests (639706) work

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

12 years agoReplaced all instances of std strings and vectors in favor of SkStrings and SkTDArray...
chudy@google.com [Tue, 7 Aug 2012 20:41:37 +0000 (20:41 +0000)]
Replaced all instances of std strings and vectors in favor of SkStrings and SkTDArrays within skia code

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

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

12 years agoRefactor Bitmap Storage for SkPicture using SkPipe's design.
djsollen@google.com [Tue, 7 Aug 2012 19:49:41 +0000 (19:49 +0000)]
Refactor Bitmap Storage for SkPicture using SkPipe's design.

Refactor Picture and Pipe bitmap storage into common data structure

Update SkFlattenable buffers to be more modular.

This CL is an effort to stage the conversion to named
parameters for all SkFlattenable commands. This particular
stage only does the following two things...

1. Move flattenable buffers from SkFlattenable.h into
   their own header.
2. Update and Add new read write methods for better clarity
   and convenience.

BUG=

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

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

12 years agoFixing NoGPU build of bench
junov@chromium.org [Tue, 7 Aug 2012 18:00:31 +0000 (18:00 +0000)]
Fixing NoGPU build of bench
Problem was: As of r4989, SkDeferredCanvas.h no longer includes SkDevice.h

Unreviewed

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

12 years agouniquely name FS functions, add lighting effects to unit test
bsalomon@google.com [Tue, 7 Aug 2012 17:36:29 +0000 (17:36 +0000)]
uniquely name FS functions, add lighting effects to unit test

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

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

12 years agoAdding storage of SkPath::fIsOval
robertphillips@google.com [Tue, 7 Aug 2012 17:32:51 +0000 (17:32 +0000)]
Adding storage of SkPath::fIsOval

http://codereview.appspot.com/6453085/

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

12 years agoRefactored the bitmap creation into PictureRenderer.
keyar@chromium.org [Tue, 7 Aug 2012 17:11:33 +0000 (17:11 +0000)]
Refactored the bitmap creation into PictureRenderer.

Further, the picture is also stored in the PictureRenderer.

The main gain of all of this is that we will not have to change how the device in more than one place when we end up adding different devices.

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

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

12 years agoMoving DeferredDevice and DeferredGPipeController classes out of the deferred canvas...
junov@chromium.org [Tue, 7 Aug 2012 16:48:22 +0000 (16:48 +0000)]
Moving DeferredDevice and DeferredGPipeController classes out of the deferred canvas API header
Review URL: https://codereview.appspot.com/6449104

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

12 years agoremove until these stop being flakey
reed@google.com [Tue, 7 Aug 2012 16:24:03 +0000 (16:24 +0000)]
remove until these stop being flakey

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

12 years agomust include SkPath.h after restructure
reed@google.com [Tue, 7 Aug 2012 16:15:13 +0000 (16:15 +0000)]
must include SkPath.h after restructure

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

12 years agoRefactoring into a public facing facing SkDebugger class first pass.
chudy@google.com [Tue, 7 Aug 2012 16:12:23 +0000 (16:12 +0000)]
Refactoring into a public facing facing SkDebugger class first pass.

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

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

12 years agoinclude SkFlatteningBuffer.h after restructure
reed@google.com [Tue, 7 Aug 2012 16:10:42 +0000 (16:10 +0000)]
include SkFlatteningBuffer.h after restructure

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

12 years agoadd baselines after test changed
reed@google.com [Tue, 7 Aug 2012 16:09:27 +0000 (16:09 +0000)]
add baselines after test changed

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

12 years agoFix for r4978 unit test failure. TBR by Brian
robertphillips@google.com [Tue, 7 Aug 2012 16:04:54 +0000 (16:04 +0000)]
Fix for r4978 unit test failure. TBR by Brian

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

12 years agoneed to explicitly include SkPath.h after refactoring
reed@google.com [Tue, 7 Aug 2012 16:01:15 +0000 (16:01 +0000)]
need to explicitly include SkPath.h after refactoring

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

12 years agoremove as test has changed. Will rebaseline later
reed@google.com [Tue, 7 Aug 2012 15:56:15 +0000 (15:56 +0000)]
remove as test has changed. Will rebaseline later

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

12 years agoUpdate SkFlattenable buffers to be more modular.
djsollen@google.com [Tue, 7 Aug 2012 15:54:32 +0000 (15:54 +0000)]
Update SkFlattenable buffers to be more modular.

This CL is an effort to stage the conversion to named
parameters for all SkFlattenable commands. This particular
stage only does the following two things...

1. Move flattenable buffers from SkFlattenable.h into
   their own header.
2. Update and Add new read write methods for better clarity
   and convenience.

BUG=

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

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

12 years agochange SkTextToPathIter to allow continuation even when there is no path for
reed@google.com [Tue, 7 Aug 2012 15:53:00 +0000 (15:53 +0000)]
change SkTextToPathIter to allow continuation even when there is no path for
the current glyph. Fixes bug in getTextPath() if there are spaces in the text.

Update gm to add space-characters, so images will have to be rebaselined.

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

12 years agoAdded SkClipStack portion of new clip mask caching system
robertphillips@google.com [Tue, 7 Aug 2012 15:38:08 +0000 (15:38 +0000)]
Added SkClipStack portion of new clip mask caching system

http://codereview.appspot.com/6449089/

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

12 years agomove SkTextToPathIter into private header
reed@google.com [Tue, 7 Aug 2012 15:19:47 +0000 (15:19 +0000)]
move SkTextToPathIter into private header

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

12 years agoStyle correction: sprinkling "this->" in SkDeferredCanvas.cpp
junov@chromium.org [Tue, 7 Aug 2012 15:14:01 +0000 (15:14 +0000)]
Style correction: sprinkling "this->" in SkDeferredCanvas.cpp

Unreviewed.

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

12 years agoQuick mem fix for debug canvas leaking when loading new pics.
chudy@google.com [Tue, 7 Aug 2012 15:08:33 +0000 (15:08 +0000)]
Quick mem fix for debug canvas leaking when loading new pics.

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

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

12 years agoRemoving the SkPicture backend from SkDeferredCanvas code
junov@chromium.org [Tue, 7 Aug 2012 14:53:59 +0000 (14:53 +0000)]
Removing the SkPicture backend from SkDeferredCanvas code
Review URL: https://codereview.appspot.com/6446095

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

12 years agoRemove verylargebitmap gm on Android
borenet@google.com [Tue, 7 Aug 2012 14:46:05 +0000 (14:46 +0000)]
Remove verylargebitmap gm on Android

We can't allocate that much memory on Android
Review URL: https://codereview.appspot.com/6460054

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

12 years agoAdding API to SkGPipe and SkDeferredCanvas for controlling memory usage externally
junov@chromium.org [Tue, 7 Aug 2012 14:26:57 +0000 (14:26 +0000)]
Adding API to SkGPipe and SkDeferredCanvas for controlling memory usage externally

BUG=http://code.google.com/p/chromium/issues/detail?id=136828
Review URL: https://codereview.appspot.com/6454102

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

12 years agodocument OwnDeviceCanvas
reed@google.com [Tue, 7 Aug 2012 14:25:44 +0000 (14:25 +0000)]
document OwnDeviceCanvas

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

12 years agoinitial baselines for very large bitmaps
reed@google.com [Tue, 7 Aug 2012 14:06:34 +0000 (14:06 +0000)]
initial baselines for very large bitmaps

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

12 years agoadd gm for very large bitmaps (>32K >64K)
reed@google.com [Tue, 7 Aug 2012 14:05:14 +0000 (14:05 +0000)]
add gm for very large bitmaps (>32K >64K)
raster expected to fail when scaling >64K (for now)

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

12 years agorebaseline after resize
reed@google.com [Tue, 7 Aug 2012 14:03:28 +0000 (14:03 +0000)]
rebaseline after resize

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

12 years agoenable large bitmap drawing by default (still disabled in chrome at the moment)
reed@google.com [Tue, 7 Aug 2012 13:19:01 +0000 (13:19 +0000)]
enable large bitmap drawing by default (still disabled in chrome at the moment)

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

12 years agoAdd -logFile option to Bench
borenet@google.com [Tue, 7 Aug 2012 12:58:50 +0000 (12:58 +0000)]
Add -logFile option to Bench

Logs to a file as well as stdout.  Useful for Android,
where logging takes a different format.
Review URL: https://codereview.appspot.com/6450095

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

12 years agoupdate baselines for macpro
reed@google.com [Mon, 6 Aug 2012 21:54:10 +0000 (21:54 +0000)]
update baselines for macpro

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

12 years agomove SkFilterShader into private header
reed@google.com [Mon, 6 Aug 2012 21:20:05 +0000 (21:20 +0000)]
move SkFilterShader into private header
Review URL: https://codereview.appspot.com/6454107

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

12 years agoEven when the pts are restricted to 32K values, we can still overflow computing
reed@google.com [Mon, 6 Aug 2012 19:01:34 +0000 (19:01 +0000)]
Even when the pts are restricted to 32K values, we can still overflow computing
a fixed-point coefficient for quadratics. To avoid this, we bias these
coefficients, storing 1/2 of their actual value, and then apply the 2x unbias
in updateQuadratic().

Fixes http://code.google.com/p/chromium/issues/detail?id=140803
Review URL: https://codereview.appspot.com/6450099

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

12 years agoIf we lose precision computing sum of the dash intervals, then we can have the
reed@google.com [Mon, 6 Aug 2012 14:58:35 +0000 (14:58 +0000)]
If we lose precision computing sum of the dash intervals, then we can have the
same error when we subtract-in-a-loop with the phase. The result is that we can
read past the end of the array.

To fix this, we just pin the loop counter, and if we exhaust our intervals, we
just treat the phase as 0. Not precisely the exact answer, but we aren't going
to draw this dash correctly anyway, since it contains massive interval values
that will be imprecise given our current float implementation.

Fixes http://code.google.com/p/chromium/issues/detail?id=140642
Review URL: https://codereview.appspot.com/6458088

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

12 years agorm: Introduce SK_ARM_NEON_WRAP handy wrapper macro.
digit@google.com [Mon, 6 Aug 2012 14:53:32 +0000 (14:53 +0000)]
rm: Introduce SK_ARM_NEON_WRAP handy wrapper macro.

It is used to simplify arm/neon dispatch logic code.
Review URL: https://codereview.appspot.com/6458060

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

12 years agoadd LF at the end, since this is SO important the chrome-mac build failed.
reed@google.com [Mon, 6 Aug 2012 14:37:22 +0000 (14:37 +0000)]
add LF at the end, since this is SO important the chrome-mac build failed.

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

12 years agoshape ops work in progress
caryclark@google.com [Mon, 6 Aug 2012 11:15:47 +0000 (11:15 +0000)]
shape ops work in progress

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

12 years agotie slow sort (STD) to legacy AA, so that skia can use the fast one, and so that
reed@google.com [Fri, 3 Aug 2012 20:06:12 +0000 (20:06 +0000)]
tie slow sort (STD) to legacy AA, so that skia can use the fast one, and so that
when chrome disables the legacy flag, it will automatically get the faster one.

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

12 years agorevert gpu-less mac sample app, remove busted sample (that has equivalent gm)
bsalomon@google.com [Fri, 3 Aug 2012 19:25:10 +0000 (19:25 +0000)]
revert gpu-less mac sample app, remove busted sample (that has equivalent gm)

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

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

12 years agoEnsure that enums used by GrCustomStage TestCreate functions are declared in SK_ALLOW...
bsalomon@google.com [Fri, 3 Aug 2012 18:49:51 +0000 (18:49 +0000)]
Ensure that enums used by GrCustomStage TestCreate functions are declared in SK_ALLOW_GLOBAL_STATIC_INITIALIZERS=0 builds (e.g. android)

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

12 years agoAdd .0 on float GLSL literals to fix GLPrograms test break
bsalomon@google.com [Fri, 3 Aug 2012 18:22:53 +0000 (18:22 +0000)]
Add .0 on float GLSL literals to fix GLPrograms test break

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

12 years agoAdd morphology, convolution, single texture, texture domain effects to new unit test...
bsalomon@google.com [Fri, 3 Aug 2012 18:12:20 +0000 (18:12 +0000)]
Add morphology, convolution, single texture, texture domain effects to new unit test system

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

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