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

Unified Diff: bench/ETCBitmapBench.cpp

Issue 834633006: add ImageGenerator::NewFromData to porting layer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add helper for SkInstallDiscardablePixelRef(SkData*, ...) Created 5 years, 11 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
« no previous file with comments | « no previous file | gm/astcbitmap.cpp » ('j') | include/core/SkImageGenerator.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/ETCBitmapBench.cpp
diff --git a/bench/ETCBitmapBench.cpp b/bench/ETCBitmapBench.cpp
index 36573c8245ad6e343e2f81de053fac776a5d3a27..4255923c4b99e3dbc06a3300334e8bd358c74f86 100644
--- a/bench/ETCBitmapBench.cpp
+++ b/bench/ETCBitmapBench.cpp
@@ -9,7 +9,7 @@
#include "Resources.h"
#include "SkCanvas.h"
#include "SkData.h"
-#include "SkDecodingImageGenerator.h"
+#include "SkImageGenerator.h"
#include "SkImageDecoder.h"
#include "SkOSFile.h"
#include "SkPixelRef.h"
@@ -151,9 +151,7 @@ protected:
}
// Install pixel ref
- if (!SkInstallDiscardablePixelRef(
- SkDecodingImageGenerator::Create(
- fPKMData, SkDecodingImageGenerator::Options()), &(this->fBitmap))) {
+ if (!SkInstallDiscardablePixelRef(fPKMData, &(this->fBitmap))) {
SkDebugf("Could not install discardable pixel ref.\n");
return;
}
« no previous file with comments | « no previous file | gm/astcbitmap.cpp » ('j') | include/core/SkImageGenerator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698