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

Unified Diff: src/gpu/gl/GrGLGpu.h

Issue 1037793002: C++11 override should now be supported by all of {bots,Chrome,Android,Mozilla} (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: git cl web Created 5 years, 9 months 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 | « src/gpu/gl/GrGLGeometryProcessor.h ('k') | src/gpu/gl/GrGLIndexBuffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLGpu.h
diff --git a/src/gpu/gl/GrGLGpu.h b/src/gpu/gl/GrGLGpu.h
index c9e280c3cbc8b7478c8d9c25e24b326086df42b8..f6a48d7589869af0714572051c75f64ed0a8973c 100644
--- a/src/gpu/gl/GrGLGpu.h
+++ b/src/gpu/gl/GrGLGpu.h
@@ -32,9 +32,9 @@ class GrPipeline;
class GrGLGpu : public GrGpu {
public:
GrGLGpu(const GrGLContext& ctx, GrContext* context);
- ~GrGLGpu() SK_OVERRIDE;
+ ~GrGLGpu() override;
- void contextAbandoned() SK_OVERRIDE;
+ void contextAbandoned() override;
const GrGLContext& glContext() const { return fGLContext; }
@@ -50,7 +50,7 @@ public:
return static_cast<GrGLPathRendering*>(pathRendering());
}
- void discard(GrRenderTarget*) SK_OVERRIDE;
+ void discard(GrRenderTarget*) override;
// Used by GrGLProgram and GrGLPathTexGenProgramEffects to configure OpenGL
// state.
@@ -58,18 +58,18 @@ public:
// GrGpu overrides
GrPixelConfig preferredReadPixelsConfig(GrPixelConfig readConfig,
- GrPixelConfig surfaceConfig) const SK_OVERRIDE;
+ GrPixelConfig surfaceConfig) const override;
GrPixelConfig preferredWritePixelsConfig(GrPixelConfig writeConfig,
- GrPixelConfig surfaceConfig) const SK_OVERRIDE;
- bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig) const SK_OVERRIDE;
+ GrPixelConfig surfaceConfig) const override;
+ bool canWriteTexturePixels(const GrTexture*, GrPixelConfig srcConfig) const override;
bool readPixelsWillPayForYFlip(GrRenderTarget* renderTarget,
int left, int top,
int width, int height,
GrPixelConfig config,
- size_t rowBytes) const SK_OVERRIDE;
- bool fullReadPixelsIsFasterThanPartial() const SK_OVERRIDE;
+ size_t rowBytes) const override;
+ bool fullReadPixelsIsFasterThanPartial() const override;
- bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) SK_OVERRIDE;
+ bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) override;
// These functions should be used to bind GL objects. They track the GL state and skip redundant
// bindings. Making the equivalent glBind calls directly will confuse the state tracking.
@@ -98,55 +98,55 @@ public:
bool copySurface(GrSurface* dst,
GrSurface* src,
const SkIRect& srcRect,
- const SkIPoint& dstPoint) SK_OVERRIDE;
+ const SkIPoint& dstPoint) override;
bool canCopySurface(const GrSurface* dst,
const GrSurface* src,
const SkIRect& srcRect,
- const SkIPoint& dstPoint) SK_OVERRIDE;
+ const SkIPoint& dstPoint) override;
void buildProgramDesc(GrProgramDesc*,
const GrPrimitiveProcessor&,
const GrPipeline&,
- const GrBatchTracker&) const SK_OVERRIDE;
+ const GrBatchTracker&) const override;
private:
// GrGpu overrides
- void onResetContext(uint32_t resetBits) SK_OVERRIDE;
+ void onResetContext(uint32_t resetBits) override;
GrTexture* onCreateTexture(const GrSurfaceDesc& desc, bool budgeted, const void* srcData,
- size_t rowBytes) SK_OVERRIDE;
+ size_t rowBytes) override;
GrTexture* onCreateCompressedTexture(const GrSurfaceDesc& desc, bool budgeted,
- const void* srcData) SK_OVERRIDE;
- GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) SK_OVERRIDE;
- GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) SK_OVERRIDE;
- GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) SK_OVERRIDE;
- GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&) SK_OVERRIDE;
- bool createStencilBufferForRenderTarget(GrRenderTarget* rt, int width, int height) SK_OVERRIDE;
- bool attachStencilBufferToRenderTarget(GrStencilBuffer* sb, GrRenderTarget* rt) SK_OVERRIDE;
+ const void* srcData) override;
+ GrVertexBuffer* onCreateVertexBuffer(size_t size, bool dynamic) override;
+ GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) override;
+ GrTexture* onWrapBackendTexture(const GrBackendTextureDesc&) override;
+ GrRenderTarget* onWrapBackendRenderTarget(const GrBackendRenderTargetDesc&) override;
+ bool createStencilBufferForRenderTarget(GrRenderTarget* rt, int width, int height) override;
+ bool attachStencilBufferToRenderTarget(GrStencilBuffer* sb, GrRenderTarget* rt) override;
void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color,
- bool canIgnoreRect) SK_OVERRIDE;
+ bool canIgnoreRect) override;
- void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideClip) SK_OVERRIDE;
+ void onClearStencilClip(GrRenderTarget*, const SkIRect& rect, bool insideClip) override;
bool onReadPixels(GrRenderTarget* target,
int left, int top,
int width, int height,
GrPixelConfig,
void* buffer,
- size_t rowBytes) SK_OVERRIDE;
+ size_t rowBytes) override;
bool onWriteTexturePixels(GrTexture* texture,
int left, int top, int width, int height,
GrPixelConfig config, const void* buffer,
- size_t rowBytes) SK_OVERRIDE;
+ size_t rowBytes) override;
- void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE;
+ void onResolveRenderTarget(GrRenderTarget* target) override;
- void onDraw(const DrawArgs&, const GrDrawTarget::DrawInfo&) SK_OVERRIDE;
- void onStencilPath(const GrPath*, const StencilPathState&) SK_OVERRIDE;
- void onDrawPath(const DrawArgs&, const GrPath*, const GrStencilSettings&) SK_OVERRIDE;
+ void onDraw(const DrawArgs&, const GrDrawTarget::DrawInfo&) override;
+ void onStencilPath(const GrPath*, const StencilPathState&) override;
+ void onDrawPath(const DrawArgs&, const GrPath*, const GrStencilSettings&) override;
void onDrawPaths(const DrawArgs&,
const GrPathRange*,
const void* indices,
@@ -154,13 +154,13 @@ private:
const float transformValues[],
GrDrawTarget::PathTransformType,
int count,
- const GrStencilSettings&) SK_OVERRIDE;
+ const GrStencilSettings&) override;
- void clearStencil(GrRenderTarget*) SK_OVERRIDE;
+ void clearStencil(GrRenderTarget*) override;
// GrDrawTarget overrides
- void didAddGpuTraceMarker() SK_OVERRIDE;
- void didRemoveGpuTraceMarker() SK_OVERRIDE;
+ void didAddGpuTraceMarker() override;
+ void didRemoveGpuTraceMarker() override;
// binds texture unit in GL
void setTextureUnit(int unitIdx);
« no previous file with comments | « src/gpu/gl/GrGLGeometryProcessor.h ('k') | src/gpu/gl/GrGLIndexBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698