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

Side by Side Diff: src/gpu/gl/GrGLIndexBuffer.h

Issue 1313743002: Add onMemoryDump to GrContext (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Small build fix Created 5 years, 3 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/GrResourceCache.cpp ('k') | src/gpu/gl/GrGLIndexBuffer.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 15 matching lines...) Expand all
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() override; 34 void onAbandon() override;
35 void onRelease() override; 35 void onRelease() override;
36 void setMemoryBacking(SkTraceMemoryDump* traceMemoryDump,
37 const SkString& dumpName) const override;
36 38
37 private: 39 private:
38 void* onMap() override; 40 void* onMap() override;
39 void onUnmap() override; 41 void onUnmap() override;
40 bool onUpdateData(const void* src, size_t srcSizeInBytes) override; 42 bool onUpdateData(const void* src, size_t srcSizeInBytes) override;
41 43
42 GrGLGpu* getGpuGL() const { 44 GrGLGpu* getGpuGL() const {
43 SkASSERT(!this->wasDestroyed()); 45 SkASSERT(!this->wasDestroyed());
44 return (GrGLGpu*)(this->getGpu()); 46 return (GrGLGpu*)(this->getGpu());
45 } 47 }
46 48
47 GrGLBufferImpl fImpl; 49 GrGLBufferImpl fImpl;
48 50
49 typedef GrIndexBuffer INHERITED; 51 typedef GrIndexBuffer INHERITED;
50 }; 52 };
51 53
52 #endif 54 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrResourceCache.cpp ('k') | src/gpu/gl/GrGLIndexBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698