diff options
Diffstat (limited to 'chromium/cc/paint/paint_canvas.h')
-rw-r--r-- | chromium/cc/paint/paint_canvas.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chromium/cc/paint/paint_canvas.h b/chromium/cc/paint/paint_canvas.h index a8201032901..32918efd58a 100644 --- a/chromium/cc/paint/paint_canvas.h +++ b/chromium/cc/paint/paint_canvas.h @@ -50,6 +50,10 @@ class CC_PAINT_EXPORT PaintCanvas { // recording or not, so could be simplified or removed. virtual SkImageInfo imageInfo() const = 0; + virtual void* accessTopLayerPixels(SkImageInfo* info, + size_t* rowBytes, + SkIPoint* origin = nullptr) = 0; + // TODO(enne): It would be nice to get rid of flush() entirely, as it // doesn't really make sense for recording. However, this gets used by // PaintCanvasVideoRenderer which takes a PaintCanvas to paint both @@ -172,7 +176,6 @@ class CC_PAINT_EXPORT PaintCanvas { virtual void drawPicture(sk_sp<const PaintRecord> record) = 0; virtual bool isClipEmpty() const = 0; - virtual bool isClipRect() const = 0; virtual const SkMatrix& getTotalMatrix() const = 0; // Used for printing |