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

Unified Diff: src/gpu/SkGpuDevice.h

Issue 1763143002: WIP RasterCanvasLayerAllocator (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: test and some further work Created 4 years, 7 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/gpu/SkGpuDevice.h
diff --git a/src/gpu/SkGpuDevice.h b/src/gpu/SkGpuDevice.h
index 474a030ef5bd787ab8152f0011bef8fffc7388cc..6689e491e2b81631fb0ff6132c1534eaf2031087 100644
--- a/src/gpu/SkGpuDevice.h
+++ b/src/gpu/SkGpuDevice.h
@@ -22,6 +22,7 @@
class GrAccelData;
class GrTextureProducer;
struct GrCachedLayer;
+class SkRasterCanvasLayerAllocator;
/**
* Subclass of SkBaseDevice, which directs all drawing to the GrGpu owned by the
@@ -65,7 +66,7 @@ public:
SkGpuDevice* cloneDevice(const SkSurfaceProps& props) {
SkBaseDevice* dev = this->onCreateDevice(CreateInfo(this->imageInfo(), kPossible_TileUsage,
props.pixelGeometry()),
- nullptr);
+ nullptr, nullptr);
return static_cast<SkGpuDevice*>(dev);
}
@@ -172,7 +173,8 @@ private:
SkGpuDevice(sk_sp<GrDrawContext>, int width, int height, unsigned flags);
- SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override;
+ SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*,
+ SkRasterCanvasLayerAllocator*) override;
sk_sp<SkSurface> makeSurface(const SkImageInfo&, const SkSurfaceProps&) override;

Powered by Google App Engine
This is Rietveld 408576698