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

Unified Diff: include/core/SkImage.h

Issue 14646007: Adding public API method on SkImage for extracting the GPU texture handle. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 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.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkImage.h
===================================================================
--- include/core/SkImage.h (revision 8915)
+++ include/core/SkImage.h (working copy)
@@ -72,6 +72,13 @@
int height() const { return fHeight; }
uint32_t uniqueID() const { return fUniqueID; }
+ /**
+ * Return the GrTexture that stores the image pixels. Calling getTexture
+ * does not affect the reference count of the GrTexture object.
+ * Will return NULL if the image does not use a texture.
+ */
+ GrTexture* getTexture();
+
SkShader* newShaderClamp() const;
SkShader* newShader(SkShader::TileMode, SkShader::TileMode) const;
« no previous file with comments | « no previous file | src/image/SkImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698