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

Side by Side Diff: include/gpu/gl/SkGLContext.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 unified diff | Download patch
« no previous file with comments | « include/gpu/effects/GrPorterDuffXferProcessor.h ('k') | include/gpu/gl/SkNullGLContext.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #ifndef SkGLContext_DEFINED 8 #ifndef SkGLContext_DEFINED
9 #define SkGLContext_DEFINED 9 #define SkGLContext_DEFINED
10 10
11 #include "GrGLInterface.h" 11 #include "GrGLInterface.h"
12 12
13 /** 13 /**
14 * Create an offscreen opengl context with an RGBA8 / 8bit stencil FBO. 14 * Create an offscreen opengl context with an RGBA8 / 8bit stencil FBO.
15 * Provides a GrGLInterface struct of function pointers for the context. 15 * Provides a GrGLInterface struct of function pointers for the context.
16 */ 16 */
17 17
18 class SK_API SkGLContext : public SkRefCnt { 18 class SK_API SkGLContext : public SkRefCnt {
19 public: 19 public:
20 SK_DECLARE_INST_COUNT(SkGLContext) 20 SK_DECLARE_INST_COUNT(SkGLContext)
21 21
22 ~SkGLContext() SK_OVERRIDE; 22 ~SkGLContext() override;
23 23
24 bool isValid() const { return NULL != gl(); } 24 bool isValid() const { return NULL != gl(); }
25 25
26 const GrGLInterface* gl() const { return fGL.get(); } 26 const GrGLInterface* gl() const { return fGL.get(); }
27 27
28 virtual void makeCurrent() const = 0; 28 virtual void makeCurrent() const = 0;
29 29
30 /** 30 /**
31 * The primary purpose of this function it to provide a means of scheduling 31 * The primary purpose of this function it to provide a means of scheduling
32 * work on the GPU (since all of the subclasses create primary buffers for 32 * work on the GPU (since all of the subclasses create primary buffers for
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 * SK_GL(glCtx, GenTextures(1, &texID)); 71 * SK_GL(glCtx, GenTextures(1, &texID));
72 */ 72 */
73 #define SK_GL(ctx, X) (ctx).gl()->fFunctions.f ## X; \ 73 #define SK_GL(ctx, X) (ctx).gl()->fFunctions.f ## X; \
74 SkASSERT(0 == (ctx).gl()->fFunctions.fGetError()) 74 SkASSERT(0 == (ctx).gl()->fFunctions.fGetError())
75 #define SK_GL_RET(ctx, RET, X) (RET) = (ctx).gl()->fFunctions.f ## X; \ 75 #define SK_GL_RET(ctx, RET, X) (RET) = (ctx).gl()->fFunctions.f ## X; \
76 SkASSERT(0 == (ctx).gl()->fFunctions.fGetError()) 76 SkASSERT(0 == (ctx).gl()->fFunctions.fGetError())
77 #define SK_GL_NOERRCHECK(ctx, X) (ctx).gl()->fFunctions.f ## X 77 #define SK_GL_NOERRCHECK(ctx, X) (ctx).gl()->fFunctions.f ## X
78 #define SK_GL_RET_NOERRCHECK(ctx, RET, X) (RET) = (ctx).gl()->fFunctions.f ## X 78 #define SK_GL_RET_NOERRCHECK(ctx, RET, X) (RET) = (ctx).gl()->fFunctions.f ## X
79 79
80 #endif 80 #endif
OLDNEW
« no previous file with comments | « include/gpu/effects/GrPorterDuffXferProcessor.h ('k') | include/gpu/gl/SkNullGLContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698