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

Unified Diff: third_party/WebKit/Source/platform/graphics/Image.cpp

Issue 2588103002: Simplify Image::isTextureBacked() (Closed)
Patch Set: rebase Created 4 years 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: third_party/WebKit/Source/platform/graphics/Image.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/Image.cpp b/third_party/WebKit/Source/platform/graphics/Image.cpp
index 065a8a3eeecb0a24427b141fefa2c01263d818ca..b81b5ac080aa804712170b62973713120fac5ffa 100644
--- a/third_party/WebKit/Source/platform/graphics/Image.cpp
+++ b/third_party/WebKit/Source/platform/graphics/Image.cpp
@@ -328,14 +328,6 @@ PassRefPtr<Image> Image::imageForDefaultFrame() {
return image.release();
}
-bool Image::isTextureBacked() {
- // TODO(ccameron): It should not be necessary to specify color conversion for
- // this query.
- sk_sp<SkImage> image =
- imageForCurrentFrame(ColorBehavior::transformToGlobalTarget());
- return image ? image->isTextureBacked() : false;
-}
-
bool Image::applyShader(SkPaint& paint,
const SkMatrix& localMatrix,
const ColorBehavior& colorBehavior) {
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/Image.h ('k') | third_party/WebKit/Source/platform/graphics/StaticBitmapImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698