Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Unified Diff: src/gpu/GrGpu.h

Issue 811483003: devirtualize some functions on GrGpu (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrGpu.h
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
index c88e1c85d0b7dac7bdfb672747094f8be2b25f69..7f4eb53899dfc2cbbede699d793e06fab79901e5 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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698