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

Side by Side Diff: src/gpu/gl/GrGLIndexBuffer.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, 8 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 | « src/gpu/gl/GrGLGpu.h ('k') | src/gpu/gl/GrGLNameAllocator.cpp » ('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 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrGLIndexBuffer_DEFINED 8 #ifndef GrGLIndexBuffer_DEFINED
9 #define GrGLIndexBuffer_DEFINED 9 #define GrGLIndexBuffer_DEFINED
10 10
(...skipping 13 matching lines...) Expand all
24 GrGLuint bufferID() const { return fImpl.bufferID(); } 24 GrGLuint bufferID() const { return fImpl.bufferID(); }
25 size_t baseOffset() const { return fImpl.baseOffset(); } 25 size_t baseOffset() const { return fImpl.baseOffset(); }
26 26
27 void bind() const { 27 void bind() const {
28 if (!this->wasDestroyed()) { 28 if (!this->wasDestroyed()) {
29 fImpl.bind(this->getGpuGL()); 29 fImpl.bind(this->getGpuGL());
30 } 30 }
31 } 31 }
32 32
33 protected: 33 protected:
34 void onAbandon() SK_OVERRIDE; 34 void onAbandon() override;
35 void onRelease() SK_OVERRIDE; 35 void onRelease() override;
36 36
37 private: 37 private:
38 void* onMap() SK_OVERRIDE; 38 void* onMap() override;
39 void onUnmap() SK_OVERRIDE; 39 void onUnmap() override;
40 bool onUpdateData(const void* src, size_t srcSizeInBytes) SK_OVERRIDE; 40 bool onUpdateData(const void* src, size_t srcSizeInBytes) override;
41 41
42 GrGLGpu* getGpuGL() const { 42 GrGLGpu* getGpuGL() const {
43 SkASSERT(!this->wasDestroyed()); 43 SkASSERT(!this->wasDestroyed());
44 return (GrGLGpu*)(this->getGpu()); 44 return (GrGLGpu*)(this->getGpu());
45 } 45 }
46 46
47 GrGLBufferImpl fImpl; 47 GrGLBufferImpl fImpl;
48 48
49 typedef GrIndexBuffer INHERITED; 49 typedef GrIndexBuffer INHERITED;
50 }; 50 };
51 51
52 #endif 52 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLGpu.h ('k') | src/gpu/gl/GrGLNameAllocator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698