aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-12-15 13:12:08 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-12-15 13:12:08 -0800
commit830d20680b642ca27ceb34baa1b1eb8e1f5d459a (patch)
treebda133507bfcecece481ffcba1a5c831c58c6039 /src/gpu
parent2bb034a7b567f5540a01430d35fd847b9dd63f3e (diff)
devirtualize some functions on GrGpu
Diffstat (limited to 'src/gpu')
-rw-r--r--src/gpu/GrGpu.h28
1 files 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) {