From 830d20680b642ca27ceb34baa1b1eb8e1f5d459a Mon Sep 17 00:00:00 2001 From: bsalomon Date: Mon, 15 Dec 2014 13:12:08 -0800 Subject: devirtualize some functions on GrGpu Review URL: https://codereview.chromium.org/811483003 --- src/gpu/GrGpu.h | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h index c88e1c85d0..7f4eb53899 100644 --- a/src/gpu/GrGpu.h +++ b/src/gpu/GrGpu.h @@ -51,7 +51,7 @@ public: //////////////////////////////////////////////////////////////////////////// GrGpu(GrContext* context); - virtual ~GrGpu(); + ~GrGpu() SK_OVERRIDE; GrContext* getContext() { return fContext; } const GrContext* getContext() const { return fContext; } @@ -357,21 +357,17 @@ public: const SkIRect& srcRect, const SkIPoint& dstPoint) = 0; - virtual void draw(const GrOptDrawState&, const GrDrawTarget::DrawInfo&); - virtual void stencilPath(const GrOptDrawState&, - const GrPath*, - const GrStencilSettings&); - virtual void drawPath(const GrOptDrawState&, - const GrPath*, - const GrStencilSettings&); - virtual void drawPaths(const GrOptDrawState&, - const GrPathRange*, - const void* indices, - GrDrawTarget::PathIndexType, - const float transformValues[], - GrDrawTarget::PathTransformType, - int count, - const GrStencilSettings&); + void draw(const GrOptDrawState&, const GrDrawTarget::DrawInfo&); + void stencilPath(const GrOptDrawState&, const GrPath*, const GrStencilSettings&); + void drawPath(const GrOptDrawState&, const GrPath*, const GrStencilSettings&); + void drawPaths(const GrOptDrawState&, + const GrPathRange*, + const void* indices, + GrDrawTarget::PathIndexType, + const float transformValues[], + GrDrawTarget::PathTransformType, + int count, + const GrStencilSettings&); static DrawType PrimTypeToDrawType(GrPrimitiveType type) { switch (type) { -- cgit v1.2.3