platform/upstream/libSkiaSharp.git
11 years agooops, don't say static for an extern function
reed@google.com [Tue, 26 Mar 2013 12:32:03 +0000 (12:32 +0000)]
oops, don't say static for an extern function

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

11 years agoremove SkFontHost::NextLogicalFont, and add android-specific function
reed@google.com [Tue, 26 Mar 2013 12:29:05 +0000 (12:29 +0000)]
remove SkFontHost::NextLogicalFont, and add android-specific function
SkAndroidNextLogicalTypeface

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

11 years agoWhitespace change to trigger rebuilds
rmistry@google.com [Tue, 26 Mar 2013 11:26:06 +0000 (11:26 +0000)]
Whitespace change to trigger rebuilds

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

11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Tue, 26 Mar 2013 07:01:04 +0000 (07:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

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

11 years agoWhitespace change to test compile-only bots
borenet@google.com [Tue, 26 Mar 2013 05:49:40 +0000 (05:49 +0000)]
Whitespace change to test compile-only bots

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

11 years agoReverting r8376, r8373 and r8371 due to Android shader compilation failures
robertphillips@google.com [Mon, 25 Mar 2013 22:16:02 +0000 (22:16 +0000)]
Reverting r8376, r8373 and r8371 due to Android shader compilation failures

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

11 years agocheck-point (early) for fontmgr stuff, not called.
reed@google.com [Mon, 25 Mar 2013 20:44:02 +0000 (20:44 +0000)]
check-point (early) for fontmgr stuff, not called.

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

11 years agoUnreviewed build fix
sugoi@google.com [Mon, 25 Mar 2013 20:41:07 +0000 (20:41 +0000)]
Unreviewed build fix

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

11 years agooops, fix name for SkCreateDataProviderFromData
reed@google.com [Mon, 25 Mar 2013 20:21:26 +0000 (20:21 +0000)]
oops, fix name for SkCreateDataProviderFromData

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

11 years agoexpose skdata -> cgdataprovider helper
reed@google.com [Mon, 25 Mar 2013 20:15:40 +0000 (20:15 +0000)]
expose skdata -> cgdataprovider helper

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

11 years agoUnreviewed build fix
sugoi@google.com [Mon, 25 Mar 2013 20:14:08 +0000 (20:14 +0000)]
Unreviewed build fix

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

11 years agoChange fixedWidth to fixedPitch and implement on Windows.
bungeman@google.com [Mon, 25 Mar 2013 19:36:11 +0000 (19:36 +0000)]
Change fixedWidth to fixedPitch and implement on Windows.
https://codereview.appspot.com/7954044/

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

11 years agoNew SVG turbulence in Skia
sugoi@google.com [Mon, 25 Mar 2013 19:31:04 +0000 (19:31 +0000)]
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.chromium.org/13047005

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

11 years agomove fontmgr into include/ports for now
reed@google.com [Mon, 25 Mar 2013 18:44:17 +0000 (18:44 +0000)]
move fontmgr into include/ports for now

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

11 years agoMove nested class GrDrawTarget::Caps out as GrDrawTargetCaps.
bsalomon@google.com [Mon, 25 Mar 2013 18:19:00 +0000 (18:19 +0000)]
Move nested class GrDrawTarget::Caps out as GrDrawTargetCaps.
Pass caps to GrEffect::TestCreate() functions so that they can return effects that will work with the capabilities.
Review URL: https://codereview.chromium.org/12965018

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

11 years agoRebaseline Mac 10.8 performance flakes
robertphillips@google.com [Mon, 25 Mar 2013 17:16:37 +0000 (17:16 +0000)]
Rebaseline Mac 10.8 performance flakes

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

11 years agoWhitespace change to trigger RazrI builds.
rmistry@google.com [Mon, 25 Mar 2013 16:58:49 +0000 (16:58 +0000)]
Whitespace change to trigger RazrI builds.
(RunBuilders:Skia_RazrI_4-1_Float_Release_32)

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

11 years agolimit SkFontHost::NextLogicalTypeface to only android (the only backend that
reed@google.com [Mon, 25 Mar 2013 16:36:34 +0000 (16:36 +0000)]
limit SkFontHost::NextLogicalTypeface to only android (the only backend that
seems to rely on it), so we can remove it from the portable API.

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

11 years agoFix non-Windows build break in r8364.
bsalomon@google.com [Mon, 25 Mar 2013 15:43:01 +0000 (15:43 +0000)]
Fix non-Windows build break in r8364.

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

11 years agoMake GrDrawTarget::Caps ref counted and GrGLCaps derive from it.
bsalomon@google.com [Mon, 25 Mar 2013 15:38:39 +0000 (15:38 +0000)]
Make GrDrawTarget::Caps ref counted and GrGLCaps derive from it.

Also rename GrDrawTarget::getCaps() -> GrDrawTarget::caps().
Review URL: https://codereview.chromium.org/12843026

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

11 years agomake SkFontHost::NextLogicalTypeface private (only called by SkScalerContext)
reed@google.com [Mon, 25 Mar 2013 14:55:34 +0000 (14:55 +0000)]
make SkFontHost::NextLogicalTypeface private (only called by SkScalerContext)

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

11 years agoremove SkFontHost::EnsureTypefaceAccessible declaration (no longer implemented or...
reed@google.com [Mon, 25 Mar 2013 14:45:12 +0000 (14:45 +0000)]
remove SkFontHost::EnsureTypefaceAccessible declaration (no longer implemented or called)

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

11 years agoland https://codereview.chromium.org/12676024
reed@google.com [Mon, 25 Mar 2013 13:03:37 +0000 (13:03 +0000)]
land https://codereview.chromium.org/12676024

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

11 years agoFix compiler errors/warnings in r8355
robertphillips@google.com [Mon, 25 Mar 2013 12:01:45 +0000 (12:01 +0000)]
Fix compiler errors/warnings in r8355

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

11 years agoRebaselining performance flake
robertphillips@google.com [Mon, 25 Mar 2013 11:52:27 +0000 (11:52 +0000)]
Rebaselining performance flake

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

11 years agoSkDrawCommand cleanup
robertphillips@google.com [Mon, 25 Mar 2013 11:50:42 +0000 (11:50 +0000)]
SkDrawCommand cleanup

https://codereview.chromium.org/12989030/

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

11 years agoRebaselining performance flakes
robertphillips@google.com [Sun, 24 Mar 2013 21:18:20 +0000 (21:18 +0000)]
Rebaselining performance flakes

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

11 years agoWhitespace change to test emails
rmistry@google.com [Sun, 24 Mar 2013 19:06:02 +0000 (19:06 +0000)]
Whitespace change to test emails

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

11 years agoFix for android_clang_dbg compiler error
robertphillips@google.com [Sun, 24 Mar 2013 18:41:25 +0000 (18:41 +0000)]
Fix for android_clang_dbg compiler error

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

11 years agoDon't pretend we can draw MaskFilters, it produces artifacts that make the text unrea...
edisonn@google.com [Sun, 24 Mar 2013 18:05:10 +0000 (18:05 +0000)]
Don't pretend we can draw MaskFilters, it produces artifacts that make the text unreadable when using CSS shadows.
Review URL: https://codereview.chromium.org/12989032

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

11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Sat, 23 Mar 2013 07:01:28 +0000 (07:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

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

11 years agoRebaseline for Mac 10.9 performance trigger flakes
robertphillips@google.com [Fri, 22 Mar 2013 20:15:11 +0000 (20:15 +0000)]
Rebaseline for Mac 10.9 performance trigger flakes

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

11 years agoWiden the range on some performance trigger flakes
robertphillips@google.com [Fri, 22 Mar 2013 18:35:28 +0000 (18:35 +0000)]
Widen the range on some performance trigger flakes

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

11 years agoMove oval rendering code to GrOvalRenderer.
commit-bot@chromium.org [Fri, 22 Mar 2013 18:34:09 +0000 (18:34 +0000)]
Move oval rendering code to GrOvalRenderer.

Author: jvanverth@google.com

Reviewed By: bsalomon@google.com,robertphillips@google.com

Review URL: https://chromiumcodereview.appspot.com/12657003

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

11 years agogm: change ErrorBitfield to ErrorType/ErrorCombination
epoger@google.com [Fri, 22 Mar 2013 17:29:46 +0000 (17:29 +0000)]
gm: change ErrorBitfield to ErrorType/ErrorCombination
This will enable future GM changes to report errors more completely/consistently, like skdiff.
Review URL: https://codereview.chromium.org/12992003

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

11 years agoremove SkFontHost::OpenStream(), now subsumed by SkTypeface::openStream()
reed@google.com [Fri, 22 Mar 2013 17:21:59 +0000 (17:21 +0000)]
remove SkFontHost::OpenStream(), now subsumed by SkTypeface::openStream()

remove obsolete/abandoned SkFontHost_freetype_mac.cpp
Review URL: https://codereview.chromium.org/13008019

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

11 years agoUpdate gyp\images.gyp for move of SkJpegUtility.h from include\images to src\images...
robertphillips@google.com [Fri, 22 Mar 2013 16:44:14 +0000 (16:44 +0000)]
Update gyp\images.gyp for move of SkJpegUtility.h from include\images to src\images (in r8267)

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

11 years agoMore SkDrawCommand cleanup
robertphillips@google.com [Fri, 22 Mar 2013 16:33:31 +0000 (16:33 +0000)]
More SkDrawCommand cleanup

https://codereview.chromium.org/12634024/

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

11 years agorevert 8331 (broke android text)
reed@google.com [Fri, 22 Mar 2013 15:17:21 +0000 (15:17 +0000)]
revert 8331 (broke android text)

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

11 years agofix warning (again) for SkMovie
reed@google.com [Fri, 22 Mar 2013 13:58:34 +0000 (13:58 +0000)]
fix warning (again) for SkMovie

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

11 years agoRemove Ubuntu gpu performance triggers
robertphillips@google.com [Fri, 22 Mar 2013 13:46:30 +0000 (13:46 +0000)]
Remove Ubuntu gpu performance triggers

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

11 years agoFix typo in SkTLazy.h's "operator delete"
robertphillips@google.com [Fri, 22 Mar 2013 13:34:59 +0000 (13:34 +0000)]
Fix typo in SkTLazy.h's "operator delete"

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

11 years agofix warning for SkMovie
reed@google.com [Fri, 22 Mar 2013 13:32:59 +0000 (13:32 +0000)]
fix warning for SkMovie

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

11 years agooverride SkTypeface::onOpenStream for android
reed@google.com [Fri, 22 Mar 2013 13:23:45 +0000 (13:23 +0000)]
override SkTypeface::onOpenStream for android

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

11 years agoRefactor skia_warnings_as_errors
borenet@google.com [Fri, 22 Mar 2013 13:16:06 +0000 (13:16 +0000)]
Refactor skia_warnings_as_errors
Review URL: https://codereview.chromium.org/12963002

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

11 years agoMore SkDrawCommand cleanup
robertphillips@google.com [Fri, 22 Mar 2013 12:25:30 +0000 (12:25 +0000)]
More SkDrawCommand cleanup

https://codereview.chromium.org/12979004/

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

11 years agoClean up GrCircleEdgeEffect and GrEllipseEdgeEffect.
commit-bot@chromium.org [Fri, 22 Mar 2013 12:21:57 +0000 (12:21 +0000)]
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

11 years agoWhitespace change to test commit queue
commit-bot@chromium.org [Fri, 22 Mar 2013 11:22:04 +0000 (11:22 +0000)]
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

11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Fri, 22 Mar 2013 07:01:51 +0000 (07:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

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

11 years agoremove obsolete/abandoned font backend
mike@reedtribe.org [Fri, 22 Mar 2013 00:54:58 +0000 (00:54 +0000)]
remove obsolete/abandoned font backend

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

11 years agoremove SkFontHost::GetFileName
mike@reedtribe.org [Fri, 22 Mar 2013 00:47:41 +0000 (00:47 +0000)]
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

11 years agoremove obsolete/unsupported font backend
mike@reedtribe.org [Fri, 22 Mar 2013 00:37:34 +0000 (00:37 +0000)]
remove obsolete/unsupported font backend

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

11 years agoremove now obsolete GetAdvancedTypefaceMetrics API from SkFontHost
mike@reedtribe.org [Thu, 21 Mar 2013 23:59:26 +0000 (23:59 +0000)]
remove now obsolete GetAdvancedTypefaceMetrics API from SkFontHost

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

11 years agoremove obsolete/orphaned font backend
mike@reedtribe.org [Thu, 21 Mar 2013 23:45:03 +0000 (23:45 +0000)]
remove obsolete/orphaned font backend

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

11 years agoswitch to typeface api for tables
reed@google.com [Thu, 21 Mar 2013 21:43:51 +0000 (21:43 +0000)]
switch to typeface api for tables

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

11 years agoReverting 8313 (SVG turbulence) due to Ubuntu failures
robertphillips@google.com [Thu, 21 Mar 2013 21:22:03 +0000 (21:22 +0000)]
Reverting 8313 (SVG turbulence) due to Ubuntu failures

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

11 years agomake OpenStream and GetFileName private (soon to go away)
reed@google.com [Thu, 21 Mar 2013 21:16:31 +0000 (21:16 +0000)]
make OpenStream and GetFileName private (soon to go away)

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

11 years agoPerformance trigger rebaselines
robertphillips@google.com [Thu, 21 Mar 2013 21:05:49 +0000 (21:05 +0000)]
Performance trigger rebaselines

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

11 years agoNew SVG turbulence in Skia
sugoi@google.com [Thu, 21 Mar 2013 21:01:07 +0000 (21:01 +0000)]
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

11 years agooverride SkTypeface::onOpenStream for DW
reed@google.com [Thu, 21 Mar 2013 20:55:10 +0000 (20:55 +0000)]
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

11 years ago"Fix" persistent failure of BitmapFactoryTest on debug RazrI
robertphillips@google.com [Thu, 21 Mar 2013 20:54:42 +0000 (20:54 +0000)]
"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

11 years agoremove GetTable* APIs from SkFontHost, and rely on SkTypeface::onGetTable*
reed@google.com [Thu, 21 Mar 2013 20:34:27 +0000 (20:34 +0000)]
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

11 years agoEnable init'ed but unused var warning on windows for closer parity with mac/linux...
bsalomon@google.com [Thu, 21 Mar 2013 20:29:05 +0000 (20:29 +0000)]
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

11 years agooverride SkTypeface::onOpenStream()
reed@google.com [Thu, 21 Mar 2013 20:16:04 +0000 (20:16 +0000)]
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

11 years agoStop printing GL errors for disabling color tables on core profiles on nvidia/windows...
commit-bot@chromium.org [Thu, 21 Mar 2013 19:58:22 +0000 (19:58 +0000)]
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

11 years agoChange the name of SkFlags to SkCommandLineFlags.
scroggo@google.com [Thu, 21 Mar 2013 19:43:15 +0000 (19:43 +0000)]
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

11 years agooverride onGetTableTags() and onGetTableData() in SkTypeface, in preparation for
reed@google.com [Thu, 21 Mar 2013 19:28:10 +0000 (19:28 +0000)]
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

11 years agoUse function-ptr instead of SkFontHost api to allow client to handle
reed@google.com [Thu, 21 Mar 2013 18:46:35 +0000 (18:46 +0000)]
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

11 years agoRemoved the "any" command from the displacement glsl shader.
sugoi@google.com [Thu, 21 Mar 2013 18:38:03 +0000 (18:38 +0000)]
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

11 years agoadd virtual SkTypeface::onOpenStream and override that for fontconfig
reed@google.com [Thu, 21 Mar 2013 18:22:00 +0000 (18:22 +0000)]
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

11 years agoStop the GLPrograms unit test from generating out of range attrib indices for effects.
commit-bot@chromium.org [Thu, 21 Mar 2013 17:44:39 +0000 (17:44 +0000)]
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

11 years agoFix minor valgrind-found memory leaks
robertphillips@google.com [Thu, 21 Mar 2013 17:38:49 +0000 (17:38 +0000)]
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

11 years agocall onGetUPEM to subclasses can optimize it, and place default behavior
reed@google.com [Thu, 21 Mar 2013 15:36:26 +0000 (15:36 +0000)]
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

11 years agobeef-up upem test for fonts
reed@google.com [Thu, 21 Mar 2013 15:20:00 +0000 (15:20 +0000)]
beef-up upem test for fonts

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

11 years agoWhen we read from a RemoteFontStream (might happen maybe with other streams), stream...
edisonn@google.com [Thu, 21 Mar 2013 13:54:16 +0000 (13:54 +0000)]
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

11 years agoRe-land r8269, fixing build errors/warnings
epoger@google.com [Thu, 21 Mar 2013 13:49:54 +0000 (13:49 +0000)]
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

11 years agooops, update the INHERITED for our typeface
reed@google.com [Thu, 21 Mar 2013 13:38:18 +0000 (13:38 +0000)]
oops, update the INHERITED for our typeface

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

11 years agoinherit from SkTypeface_FreeType to share more code
reed@google.com [Thu, 21 Mar 2013 13:33:49 +0000 (13:33 +0000)]
inherit from SkTypeface_FreeType to share more code

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

11 years agoUpdate code to use helper function for better readability/searching.
djsollen@google.com [Thu, 21 Mar 2013 13:30:54 +0000 (13:30 +0000)]
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

11 years agoAllow more options for setting boolean flag values in SkFlags.
scroggo@google.com [Thu, 21 Mar 2013 13:10:59 +0000 (13:10 +0000)]
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

11 years agoFix divide-by-zero in program cache tracking.
commit-bot@chromium.org [Thu, 21 Mar 2013 12:46:01 +0000 (12:46 +0000)]
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

11 years agoThis changes fixes issues with the non-separable blend modes. They were not producing...
commit-bot@chromium.org [Thu, 21 Mar 2013 12:40:08 +0000 (12:40 +0000)]
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

11 years agoSanitizing source files in Skia_Periodic_House_Keeping
skia.committer@gmail.com [Thu, 21 Mar 2013 07:01:39 +0000 (07:01 +0000)]
Sanitizing source files in Skia_Periodic_House_Keeping

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

11 years agoAdjust performance triggers
robertphillips@google.com [Thu, 21 Mar 2013 00:09:12 +0000 (00:09 +0000)]
Adjust performance triggers

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

11 years agoFail to return a codec if the provided stream does not support rewind.
djsollen@google.com [Wed, 20 Mar 2013 20:16:20 +0000 (20:16 +0000)]
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

11 years agoWhen SkFlags encounters an invalid flag, quit.
scroggo@google.com [Wed, 20 Mar 2013 20:04:27 +0000 (20:04 +0000)]
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

11 years agomove impl of AdvancedTypefaceMetrics into typeface (3)
reed@google.com [Wed, 20 Mar 2013 20:01:47 +0000 (20:01 +0000)]
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

11 years agoUpdate help in SkFlags.
scroggo@google.com [Wed, 20 Mar 2013 19:50:41 +0000 (19:50 +0000)]
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

11 years agoAttempt to reland 8264-5 with warning-as-error fixes.
bsalomon@google.com [Wed, 20 Mar 2013 19:19:53 +0000 (19:19 +0000)]
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

11 years agoRevert r8269 to fix BuildGM. Warnings-as-errors problem, dunno why I didn't see it...
epoger@google.com [Wed, 20 Mar 2013 18:46:34 +0000 (18:46 +0000)]
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

11 years agoFix submit_try
borenet@google.com [Wed, 20 Mar 2013 18:00:09 +0000 (18:00 +0000)]
Fix submit_try

Unreviewed
(SkipBuildbotRuns)

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

11 years agogm refactor: extract run_multiple_configs() and run_multiple_modes()
epoger@google.com [Wed, 20 Mar 2013 17:59:28 +0000 (17:59 +0000)]
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

11 years agorevert 8265-8264 (broke build)
reed@google.com [Wed, 20 Mar 2013 17:47:16 +0000 (17:47 +0000)]
revert 8265-8264 (broke build)

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

11 years agoUpstream changes from Android for decoding jpeg images.
djsollen@google.com [Wed, 20 Mar 2013 17:45:27 +0000 (17:45 +0000)]
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

11 years agoFix build breakage.
bsalomon@google.com [Wed, 20 Mar 2013 17:41:50 +0000 (17:41 +0000)]
Fix build breakage.

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

11 years agoAdds local coords to GrEffect system.
bsalomon@google.com [Wed, 20 Mar 2013 17:32:27 +0000 (17:32 +0000)]
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

11 years agoUnreviewed. Adding TODO comment to reference newly filed bug.
junov@google.com [Wed, 20 Mar 2013 16:54:30 +0000 (16:54 +0000)]
Unreviewed. Adding TODO comment to reference newly filed bug.

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

11 years agoRemove SK_ENABLE_LIBPNG define as it is no longer needed by Android.
djsollen@google.com [Wed, 20 Mar 2013 16:07:37 +0000 (16:07 +0000)]
Remove SK_ENABLE_LIBPNG define as it is no longer needed by Android.

Review URL: https://codereview.chromium.org/12958002

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

11 years agocomments only: update docs for SkStream::readData(), SkWStream::writeData()
epoger@google.com [Wed, 20 Mar 2013 15:56:03 +0000 (15:56 +0000)]
comments only: update docs for SkStream::readData(), SkWStream::writeData()
BUG=https://code.google.com/p/skia/issues/detail?id=1167
Review URL: https://codereview.chromium.org/12604012

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

11 years agoRemove unused declaration
djsollen@google.com [Wed, 20 Mar 2013 15:50:59 +0000 (15:50 +0000)]
Remove unused declaration

Review URL: https://codereview.chromium.org/12704017

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