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

Unified Diff: src/core/SkImageCacherator.cpp

Issue 2337803002: Don't copy image buffer when calculating size.
Patch Set: Updating tests. Created 4 years, 2 months 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 496ca74d9a1870a9195256b9b8cc43cc5f5dc235..f12123195c3d8e22cdf67177fe029126d0b393d8 100644
--- a/src/core/SkImageCacherator.cpp
+++ b/src/core/SkImageCacherator.cpp
@@ -127,6 +127,13 @@ bool SkImageCacherator::directGeneratePixels(const SkImageInfo& info, void* pixe
return generator->getPixels(info, pixels, rb);
}
+bool SkImageCacherator::canGenerateTexture(const GrContextThreadSafeProxy& proxy)
+{
+ ScopedGenerator generator(this);
+ return generator->canGenerateTexture(proxy);
+}
+
+
//////////////////////////////////////////////////////////////////////////////////////////////////
bool SkImageCacherator::lockAsBitmapOnlyIfAlreadyCached(SkBitmap* bitmap) {
« no previous file with comments | « src/core/SkImageCacherator.h ('k') | src/image/SkImage_Base.h » ('j') | tests/ImageTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698