Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Unified Diff: src/core/SkImageCacherator.cpp

Issue 2337803002: Don't copy image buffer when calculating size.
Patch Set: When no CPU work is needed, returning 0 means test expectation is false (0 == false). Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/core/SkImageCacherator.cpp
diff --git a/src/core/SkImageCacherator.cpp b/src/core/SkImageCacherator.cpp
index 54045d5821367a8de692fa44d6ba44f865f6d3a4..6e6a58187066ec55f2bc2b9f5e76b9c3f438b96d 100644
--- a/src/core/SkImageCacherator.cpp
+++ b/src/core/SkImageCacherator.cpp
@@ -157,6 +157,13 @@ bool SkImageCacherator::directGeneratePixels(const SkImageInfo& info, void* pixe
return generator->getPixels(info, pixels, rb);
}
+bool SkImageCacherator::canGenerateTexture(const GrContextThreadSafeProxy& proxy)
+{
+ ScopedGenerator generator(fSharedGenerator);
+ return generator->canGenerateTexture(proxy);
+}
+
+
cblume 2016/11/16 01:07:16 I'll remove this second blank line. Not sure how t
//////////////////////////////////////////////////////////////////////////////////////////////////
bool SkImageCacherator::lockAsBitmapOnlyIfAlreadyCached(SkBitmap* bitmap) {

Powered by Google App Engine
This is Rietveld 408576698