commit-bot@chromium.org
f1b6b0675e
Clean up GrCircleEdgeEffect and GrEllipseEdgeEffect.
...
Remove unnecessary headers and fix onIsEqual() for both classes.
Author: jvanverth@google.com
Reviewed By: bsalomon@google.com ,robertphillips@google.com
Review URL: https://chromiumcodereview.appspot.com/12989004
git-svn-id: http://skia.googlecode.com/svn/trunk@8327 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-22 12:21:57 +00:00
commit-bot@chromium.org
5af349676a
Whitespace change to test commit queue
...
TBR=borenet
(SkipBuildbotRuns)
Author: rmistry@google.com
Reviewed By: borenet@google.com
Review URL: https://chromiumcodereview.appspot.com/13030002
git-svn-id: http://skia.googlecode.com/svn/trunk@8325 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-22 11:22:04 +00:00
skia.committer@gmail.com
3ddb793e30
Sanitizing source files in Skia_Periodic_House_Keeping
...
git-svn-id: http://skia.googlecode.com/svn/trunk@8324 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-22 07:01:51 +00:00
mike@reedtribe.org
7935d7ca73
remove obsolete/abandoned font backend
...
git-svn-id: http://skia.googlecode.com/svn/trunk@8322 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-22 00:54:58 +00:00
mike@reedtribe.org
66d831dc74
remove SkFontHost::GetFileName
...
All remaining impls were either empty, or always return 0 for ttcIndex (its only value).
This functionality is now totally subsumed by SkTypeface::openStream()
git-svn-id: http://skia.googlecode.com/svn/trunk@8321 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-22 00:47:41 +00:00
mike@reedtribe.org
25d5ab0c0e
remove obsolete/unsupported font backend
...
git-svn-id: http://skia.googlecode.com/svn/trunk@8320 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-22 00:37:34 +00:00
mike@reedtribe.org
53872fb937
remove now obsolete GetAdvancedTypefaceMetrics API from SkFontHost
...
git-svn-id: http://skia.googlecode.com/svn/trunk@8319 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 23:59:26 +00:00
mike@reedtribe.org
06e87370a7
remove obsolete/orphaned font backend
...
git-svn-id: http://skia.googlecode.com/svn/trunk@8318 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 23:45:03 +00:00
reed@google.com
398de9ad9c
switch to typeface api for tables
...
git-svn-id: http://skia.googlecode.com/svn/trunk@8317 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 21:43:51 +00:00
robertphillips@google.com
b7636d3fad
Reverting 8313 (SVG turbulence) due to Ubuntu failures
...
git-svn-id: http://skia.googlecode.com/svn/trunk@8316 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 21:22:03 +00:00
reed@google.com
29b7e636be
make OpenStream and GetFileName private (soon to go away)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@8315 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 21:16:31 +00:00
robertphillips@google.com
fb4038a889
Performance trigger rebaselines
...
git-svn-id: http://skia.googlecode.com/svn/trunk@8314 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 21:05:49 +00:00
sugoi@google.com
3067cc904d
New SVG turbulence in Skia
...
This cl contains the code for both CPU and GPU generation of noise. Both codepaths yield equivalent results.
TEST:Added 'perlinnoise' gm
Review URL: https://codereview.appspot.com/7322060
git-svn-id: http://skia.googlecode.com/svn/trunk@8313 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 21:01:07 +00:00
reed@google.com
177dc6e57a
override SkTypeface::onOpenStream for DW
...
also fix warnings
Review URL: https://codereview.chromium.org/12683003
git-svn-id: http://skia.googlecode.com/svn/trunk@8312 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 20:55:10 +00:00
robertphillips@google.com
ae3f2ce18d
"Fix" persistent failure of BitmapFactoryTest on debug RazrI
...
https://codereview.chromium.org/13002002/
git-svn-id: http://skia.googlecode.com/svn/trunk@8311 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 20:54:42 +00:00
reed@google.com
6c66d2f2b6
remove GetTable* APIs from SkFontHost, and rely on SkTypeface::onGetTable*
...
default impls call SkFontStream, and rely on SkTypeface::onOpenStream
Review URL: https://codereview.chromium.org/13001002
git-svn-id: http://skia.googlecode.com/svn/trunk@8310 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 20:34:27 +00:00
bsalomon@google.com
b58a639b2f
Enable init'ed but unused var warning on windows for closer parity with mac/linux warnings.
...
Review URL: https://codereview.chromium.org/12536008
git-svn-id: http://skia.googlecode.com/svn/trunk@8307 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 20:29:05 +00:00
reed@google.com
0042b9c2a2
override SkTypeface::onOpenStream()
...
note: getTables APIs are not overridden yet, causing them to take the slow
openstream case each time. We should fix this, since openStream for windows
itself is slow (not native).
Review URL: https://codereview.chromium.org/12941006
git-svn-id: http://skia.googlecode.com/svn/trunk@8306 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 20:16:04 +00:00
commit-bot@chromium.org
dd4400b5a1
Stop printing GL errors for disabling color tables on core profiles on nvidia/windows machines.
...
Author: bsalomon@google.com
Reviewed By: jvanverth@google.com
Review URL: https://chromiumcodereview.appspot.com/12812023
git-svn-id: http://skia.googlecode.com/svn/trunk@8305 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 19:58:22 +00:00
scroggo@google.com
d9ba9a05d6
Change the name of SkFlags to SkCommandLineFlags.
...
This name is more specific to what it actually does.
Also move the code into tools/flags, to (slightly) better organize
the massive tools folder.
Update the programs that use it to use the new names.
No functionality changes.
BUG=https://code.google.com/p/skia/issues/detail?id=1173
Review URL: https://codereview.chromium.org/12440067
git-svn-id: http://skia.googlecode.com/svn/trunk@8304 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 19:43:15 +00:00
reed@google.com
cc9aad5787
override onGetTableTags() and onGetTableData() in SkTypeface, in preparation for
...
removing the associated APIs in SkFontHost.h
git-svn-id: http://skia.googlecode.com/svn/trunk@8303 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 19:28:10 +00:00
reed@google.com
055180cb9c
Use function-ptr instead of SkFontHost api to allow client to handle
...
loading GDI font data for fonts.
Review URL: https://codereview.chromium.org/12938004
git-svn-id: http://skia.googlecode.com/svn/trunk@8301 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 18:46:35 +00:00
sugoi@google.com
4d94e1bb06
Removed the "any" command from the displacement glsl shader.
...
WebKit's version of Mesa's compiler seems to crash on the "any" command even though it's a GLSL 1.1 command.
Review URL: https://codereview.chromium.org/12413030
git-svn-id: http://skia.googlecode.com/svn/trunk@8300 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 18:38:03 +00:00
reed@google.com
2cdc6713fb
add virtual SkTypeface::onOpenStream and override that for fontconfig
...
(other ports to follow)
When this is complete, we will be able to remove from SkFontHost
- OpenStream
- GetFileName
Review URL: https://codereview.chromium.org/12988002
git-svn-id: http://skia.googlecode.com/svn/trunk@8299 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 18:22:00 +00:00
commit-bot@chromium.org
9ae78506bd
Stop the GLPrograms unit test from generating out of range attrib indices for effects.
...
R=jvanverth@google.com
Author: bsalomon@google.com
Reviewed By: jvanverth@google.com
Review URL: https://chromiumcodereview.appspot.com/12834013
git-svn-id: http://skia.googlecode.com/svn/trunk@8298 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 17:44:39 +00:00
robertphillips@google.com
35300c47fc
Fix minor valgrind-found memory leaks
...
https://codereview.chromium.org/12440066/
git-svn-id: http://skia.googlecode.com/svn/trunk@8297 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 17:38:49 +00:00
reed@google.com
38c37ddbaf
call onGetUPEM to subclasses can optimize it, and place default behavior
...
(calling getAdvancedTypefaceMetrics) in base impl.
This allows us to remove SkFontHost::GetUnitsPerEm entirely
Review URL: https://codereview.chromium.org/12915003
git-svn-id: http://skia.googlecode.com/svn/trunk@8295 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 15:36:26 +00:00
reed@google.com
a262eea230
beef-up upem test for fonts
...
git-svn-id: http://skia.googlecode.com/svn/trunk@8293 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 15:20:00 +00:00
edisonn@google.com
9dcf465119
When we read from a RemoteFontStream (might happen maybe with other streams), stream's data might be partially consumed. If so, when we try to read the whole content of the font, we fail, because we read only part of the content.
...
Review URL: https://codereview.chromium.org/12926004
git-svn-id: http://skia.googlecode.com/svn/trunk@8291 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 13:54:16 +00:00
epoger@google.com
80724dfeb3
Re-land r8269, fixing build errors/warnings
...
Review URL: https://codereview.chromium.org/12886037
git-svn-id: http://skia.googlecode.com/svn/trunk@8290 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 13:49:54 +00:00
reed@google.com
032fbb8ebf
oops, update the INHERITED for our typeface
...
git-svn-id: http://skia.googlecode.com/svn/trunk@8289 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 13:38:18 +00:00
reed@google.com
0fc17c33f1
inherit from SkTypeface_FreeType to share more code
...
git-svn-id: http://skia.googlecode.com/svn/trunk@8288 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 13:33:49 +00:00
djsollen@google.com
5dd45021c3
Update code to use helper function for better readability/searching.
...
Review URL: https://codereview.chromium.org/12834012
git-svn-id: http://skia.googlecode.com/svn/trunk@8287 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 13:30:54 +00:00
scroggo@google.com
5dc4ca1ce6
Allow more options for setting boolean flag values in SkFlags.
...
Now booleans can be set using
--boolean=true or --boolean true (as well as other options).
Review URL: https://codereview.chromium.org/12961003
git-svn-id: http://skia.googlecode.com/svn/trunk@8285 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 13:10:59 +00:00
commit-bot@chromium.org
174db77d1a
Fix divide-by-zero in program cache tracking.
...
This also adds tracking to developer builds.
Author: jvanverth@google.com
Reviewed By: robertphillips@google.com
Review URL: https://chromiumcodereview.appspot.com/12426019
git-svn-id: http://skia.googlecode.com/svn/trunk@8284 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 12:46:01 +00:00
commit-bot@chromium.org
311d4eafab
This changes fixes issues with the non-separable blend modes. They were not producing the correct results if alpha was involved.
...
I fixed the math so everything happens in premultiplied alpha so there is no loss in precision.
I also fixed the math of color-burn and color-dodge.
Author: cabanier@gmail.com
Reviewed By: reed@google.com
Review URL: https://chromiumcodereview.appspot.com/12662006
git-svn-id: http://skia.googlecode.com/svn/trunk@8283 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 12:40:08 +00:00
skia.committer@gmail.com
c1641fc922
Sanitizing source files in Skia_Periodic_House_Keeping
...
git-svn-id: http://skia.googlecode.com/svn/trunk@8281 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 07:01:39 +00:00
robertphillips@google.com
4f25baafc4
Adjust performance triggers
...
git-svn-id: http://skia.googlecode.com/svn/trunk@8280 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-21 00:09:12 +00:00
djsollen@google.com
50166524ab
Fail to return a codec if the provided stream does not support rewind.
...
Review URL: https://codereview.chromium.org/12545052
git-svn-id: http://skia.googlecode.com/svn/trunk@8277 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-20 20:16:20 +00:00
scroggo@google.com
0f2cd172af
When SkFlags encounters an invalid flag, quit.
...
This way the user knows to change their command line.
Review URL: https://codereview.chromium.org/12881014
git-svn-id: http://skia.googlecode.com/svn/trunk@8275 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-20 20:04:27 +00:00
reed@google.com
2689f615e3
move impl of AdvancedTypefaceMetrics into typeface (3)
...
Review URL: https://codereview.chromium.org/12807004
git-svn-id: http://skia.googlecode.com/svn/trunk@8274 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-20 20:01:47 +00:00
scroggo@google.com
8366df025a
Update help in SkFlags.
...
Print the short name in addition to the standard name.
Allow an option for getting help for a specific command.
Review URL: https://codereview.chromium.org/12411007
git-svn-id: http://skia.googlecode.com/svn/trunk@8273 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-20 19:50:41 +00:00
bsalomon@google.com
c78188896e
Attempt to reland 8264-5 with warning-as-error fixes.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@8272 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-20 19:19:53 +00:00
epoger@google.com
b8210f20ce
Revert r8269 to fix BuildGM. Warnings-as-errors problem, dunno why I didn't see it locally.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@8271 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-20 18:46:34 +00:00
borenet@google.com
4bfbc7f88f
Fix submit_try
...
Unreviewed
(SkipBuildbotRuns)
git-svn-id: http://skia.googlecode.com/svn/trunk@8270 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-20 18:00:09 +00:00
epoger@google.com
0b62b3dd1c
gm refactor: extract run_multiple_configs() and run_multiple_modes()
...
Review URL: https://codereview.chromium.org/12536007
git-svn-id: http://skia.googlecode.com/svn/trunk@8269 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-20 17:59:28 +00:00
reed@google.com
67e7cde5c5
revert 8265-8264 (broke build)
...
git-svn-id: http://skia.googlecode.com/svn/trunk@8268 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-20 17:47:16 +00:00
djsollen@google.com
113994051b
Upstream changes from Android for decoding jpeg images.
...
Review URL: https://codereview.chromium.org/12438025
git-svn-id: http://skia.googlecode.com/svn/trunk@8267 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-20 17:45:27 +00:00
bsalomon@google.com
4d9853288b
Fix build breakage.
...
git-svn-id: http://skia.googlecode.com/svn/trunk@8265 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-20 17:41:50 +00:00
bsalomon@google.com
ae81d5c4aa
Adds local coords to GrEffect system.
...
Effects can ask the builder for local coords which may or may not be distinct from positions.
GrEffectStage tracks changes to relationship between pos and local coords.
GrGLEffectMatrix and GrSingleTextureEffect can use either pos or textures as intput coords
GrSimpleTextureEffect now allows for an explicit texture coords attribute.
Review URL: https://codereview.chromium.org/12531015
git-svn-id: http://skia.googlecode.com/svn/trunk@8264 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-03-20 17:32:27 +00:00