Index: src/gpu/SkGpuDevice.h |
diff --git a/src/gpu/SkGpuDevice.h b/src/gpu/SkGpuDevice.h |
index 6cbf628e58b90724608af7dedc751fe5b60c2c03..9eddc41a21521153902ac8b27037b4fc56f2c37d 100644 |
--- a/src/gpu/SkGpuDevice.h |
+++ b/src/gpu/SkGpuDevice.h |
@@ -50,6 +50,10 @@ public: |
virtual ~SkGpuDevice(); |
+ /** Creates a render targetthat can be used as the render target of the device. */ |
+ static GrRenderTarget* CreateRenderTarget(GrContext* context, SkSurface::Budgeted budgeted, |
bsalomon
2015/02/18 14:29:36
Is it possible to just infer the parameters for th
Kimmo Kinnunen
2015/02/18 14:42:54
Yeah, this is just a refactoring. I did not hone i
|
+ const SkImageInfo& info, int sampleCount); |
+ |
SkGpuDevice* cloneDevice(const SkSurfaceProps& props) { |
SkBaseDevice* dev = this->onCreateCompatibleDevice(CreateInfo(this->imageInfo(), |
kGeneral_Usage, |
@@ -62,6 +66,8 @@ public: |
// set all pixels to 0 |
void clearAll(); |
+ void swapRenderTarget(GrRenderTarget* newTarget); |
+ |
GrRenderTarget* accessRenderTarget() SK_OVERRIDE; |
SkImageInfo imageInfo() const SK_OVERRIDE { |