Forward getGrContext in color space xform canvas
authorBrian Osman <brianosman@google.com>
Mon, 8 May 2017 20:02:43 +0000 (16:02 -0400)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Tue, 9 May 2017 03:52:04 +0000 (03:52 +0000)
Bug: chromium:719664
Change-Id: I7477c1eb0479d5305233dc6a643280d88029bd17
Reviewed-on: https://skia-review.googlesource.com/15888
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>

include/core/SkCanvas.h
src/core/SkColorSpaceXformCanvas.cpp

index 646ef24..23db8d7 100644 (file)
@@ -176,7 +176,7 @@ public:
      * Return the GPU context of the device that is associated with the canvas.
      * For a canvas with non-GPU device, NULL is returned.
      */
-    GrContext* getGrContext();
+    virtual GrContext* getGrContext();
 
     ///////////////////////////////////////////////////////////////////////////
 
index 2d62458..65297a1 100644 (file)
@@ -298,6 +298,7 @@ public:
         return false;
     }
 
+    GrContext* getGrContext() override { return fTarget->getGrContext(); }
     bool onGetProps(SkSurfaceProps* props) const override { return fTarget->getProps(props); }
     void onFlush() override { return fTarget->flush(); }