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

Unified Diff: src/image/SkImage_Gpu.cpp

Issue 12567025: Integrating SkSurface with SkDeferredCanvas (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 9 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/image/SkImage_Gpu.cpp
===================================================================
--- src/image/SkImage_Gpu.cpp (revision 8402)
+++ src/image/SkImage_Gpu.cpp (working copy)
@@ -24,8 +24,6 @@
GrTexture* getTexture() { return fTexture; }
- void setTexture(GrTexture* texture);
-
private:
GrTexture* fTexture;
SkBitmap fBitmap;
@@ -56,16 +54,6 @@
canvas->drawBitmap(fBitmap, x, y, paint);
}
-void SkImage_Gpu::setTexture(GrTexture* texture) {
-
- if (texture == fTexture) {
- return;
- }
-
- SkRefCnt_SafeAssign(fTexture, texture);
- fBitmap.setPixelRef(new SkGrPixelRef(texture))->unref();
-}
-
///////////////////////////////////////////////////////////////////////////////
SkImage* SkImage::NewTexture(GrTexture* texture) {
@@ -79,7 +67,3 @@
GrTexture* SkTextureImageGetTexture(SkImage* image) {
return ((SkImage_Gpu*)image)->getTexture();
}
-
-void SkTextureImageSetTexture(SkImage* image, GrTexture* texture) {
- ((SkImage_Gpu*)image)->setTexture(texture);
-}
« no previous file with comments | « src/image/SkImagePriv.h ('k') | src/image/SkSurface.cpp » ('j') | src/image/SkSurface.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698