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>
* 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();
///////////////////////////////////////////////////////////////////////////
return false;
}
+ GrContext* getGrContext() override { return fTarget->getGrContext(); }
bool onGetProps(SkSurfaceProps* props) const override { return fTarget->getProps(props); }
void onFlush() override { return fTarget->flush(); }