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

Unified Diff: include/gpu/SkGpuDevice.h

Issue 506413004: Simplify SkGpuDevice construction (Closed) Base URL: https://skia.googlesource.com/skia.git@cons
Patch Set: Created 6 years, 4 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/gpu/SkGpuDevice.cpp » ('j') | src/gpu/SkGpuDevice.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/SkGpuDevice.h
diff --git a/include/gpu/SkGpuDevice.h b/include/gpu/SkGpuDevice.h
index 96f3d84dec443a44b84117b73989d2bd3d8da4df..ea2346e9445c435450d71e9b8f8f252d1fdcb080 100644
--- a/include/gpu/SkGpuDevice.h
+++ b/include/gpu/SkGpuDevice.h
@@ -110,12 +110,6 @@ public:
virtual const SkBitmap& onAccessBitmap() SK_OVERRIDE;
- /**
- * Make's this device's rendertarget current in the underlying 3D API.
- * Also implicitly flushes.
- */
- virtual void makeRenderTargetCurrent();
-
virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE;
virtual bool filterImage(const SkImageFilter*, const SkBitmap&,
const SkImageFilter::Context&,
@@ -160,9 +154,7 @@ private:
// remove when our clients don't rely on accessBitmap()
SkBitmap fLegacyBitmap;
- SkGpuDevice(GrContext*, GrRenderTarget*, unsigned flags = 0);
-
- SkGpuDevice(GrContext*, GrTexture*, unsigned flags = 0);
+ SkGpuDevice(GrSurface*, unsigned flags = 0);
// called from rt and tex cons
void initFromRenderTarget(GrContext*, GrRenderTarget*, unsigned flags);
« no previous file with comments | « no previous file | src/gpu/SkGpuDevice.cpp » ('j') | src/gpu/SkGpuDevice.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698