aboutsummaryrefslogtreecommitdiffhomepage
path: root/gyp
diff options
context:
space:
mode:
authorGravatar piotaixr <piotaixr@chromium.org>2014-10-02 10:57:53 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-02 10:57:53 -0700
commite4b231428e8c14cbc82d20cfb12eb08fc45f8df6 (patch)
tree0987b023b75e85bc01e8d2814fe2183ac2c38c07 /gyp
parentcf99b00980b6c9c557e71abf1a7c9f9b21217262 (diff)
Caching the result of readPixelsSupported
The call was calling GR_GL_GetIntegerv 2 times for each readPixels and thus was causing a loss of performance (resubmit of issue 344793008) Benchmark url: http://packages.gkny.fr/tst/index.html BUG=skia:2681 Committed: https://skia.googlesource.com/skia/+/753a2964afe5661ce9b2a8ca77ca9d0aabd3173c Committed: https://skia.googlesource.com/skia/+/8339371f1ec3c57a0741932fd96bff32c53d4e54 Review URL: https://codereview.chromium.org/364193004
Diffstat (limited to 'gyp')
-rw-r--r--gyp/core.gypi1
-rw-r--r--gyp/tests.gypi1
2 files changed, 2 insertions, 0 deletions
diff --git a/gyp/core.gypi b/gyp/core.gypi
index e6a131c426..fb10f32192 100644
--- a/gyp/core.gypi
+++ b/gyp/core.gypi
@@ -187,6 +187,7 @@
'<(skia_src_path)/core/SkTextBlob.cpp',
'<(skia_src_path)/core/SkTextFormatParams.h',
'<(skia_src_path)/core/SkTextMapStateProc.h',
+ '<(skia_src_path)/core/SkTHashCache.h',
'<(skia_src_path)/core/SkTileGrid.cpp',
'<(skia_src_path)/core/SkTileGrid.h',
'<(skia_src_path)/core/SkTLList.h',
diff --git a/gyp/tests.gypi b/gyp/tests.gypi
index e4a46f2388..1d38c488e0 100644
--- a/gyp/tests.gypi
+++ b/gyp/tests.gypi
@@ -193,6 +193,7 @@
'../tests/StrokeTest.cpp',
'../tests/SurfaceTest.cpp',
'../tests/TArrayTest.cpp',
+ '../tests/THashCache.cpp',
'../tests/TLSTest.cpp',
'../tests/TSetTest.cpp',
'../tests/TextBlobTest.cpp',