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

Unified Diff: include/core/SkImage.h

Issue 831323005: remove NewTexture (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 | src/image/SkImage_Gpu.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkImage.h
diff --git a/include/core/SkImage.h b/include/core/SkImage.h
index 9cc26ed4be3dff13d9a2986a3785ca4ce448d4cb..8d65870dc03883a2c8e1cfa954781ad8946d273d 100644
--- a/include/core/SkImage.h
+++ b/include/core/SkImage.h
@@ -48,15 +48,6 @@ public:
static SkImage* NewRasterData(const Info&, SkData* pixels, size_t rowBytes);
/**
- * GrTexture is a more logical parameter for this factory, but its
- * interactions with scratch cache still has issues, so for now we take
- * SkBitmap instead. This will be changed in the future. skbug.com/1449
- */
- static SkImage* NewTexture(const SkBitmap&);
-
- virtual bool isOpaque() const { return false; }
-
- /**
* Construct a new SkImage based on the given ImageGenerator.
* This function will always take ownership of the passed
* ImageGenerator. Returns NULL on error.
@@ -75,6 +66,7 @@ public:
int width() const { return fWidth; }
int height() const { return fHeight; }
uint32_t uniqueID() const { return fUniqueID; }
+ virtual bool isOpaque() const { return false; }
/**
* Return the GrTexture that stores the image pixels. Calling getTexture
« no previous file with comments | « no previous file | src/image/SkImage_Gpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698