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

Unified Diff: include/gpu/SkGpuDevice.h

Issue 517033002: Make SkGpuDevice constructors private. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more replacements of cons with factory 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 | « debugger/QT/SkGLWidget.cpp ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »
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 aebdf8ffe34ff1dd6506530e027fede4ea99c756..96f3d84dec443a44b84117b73989d2bd3d8da4df 100644
--- a/include/gpu/SkGpuDevice.h
+++ b/include/gpu/SkGpuDevice.h
@@ -53,20 +53,6 @@ public:
*/
static SkGpuDevice* Create(GrContext*, const SkImageInfo&, int sampleCount);
- /**
- * DEPRECATED -- need to make this private, call Create(surface)
- * New device that will render to the specified renderTarget.
- */
- SkGpuDevice(GrContext*, GrRenderTarget*, unsigned flags = 0);
-
- /**
- * DEPRECATED -- need to make this private, call Create(surface)
- * New device that will render to the texture (as a rendertarget).
- * The GrTexture's asRenderTarget() must be non-NULL or device will not
- * function.
- */
- SkGpuDevice(GrContext*, GrTexture*, unsigned flags = 0);
-
virtual ~SkGpuDevice();
GrContext* context() const { return fContext; }
@@ -174,6 +160,10 @@ private:
// remove when our clients don't rely on accessBitmap()
SkBitmap fLegacyBitmap;
+ SkGpuDevice(GrContext*, GrRenderTarget*, unsigned flags = 0);
+
+ SkGpuDevice(GrContext*, GrTexture*, unsigned flags = 0);
+
// called from rt and tex cons
void initFromRenderTarget(GrContext*, GrRenderTarget*, unsigned flags);
« no previous file with comments | « debugger/QT/SkGLWidget.cpp ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698