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

Side by Side Diff: src/gpu/gl/GrGLStencilAttachment.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/gl/GrGLRenderTarget.cpp ('k') | src/gpu/gl/GrGLStencilAttachment.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 8
9 #ifndef GrGLStencilAttachment_DEFINED 9 #ifndef GrGLStencilAttachment_DEFINED
10 #define GrGLStencilAttachment_DEFINED 10 #define GrGLStencilAttachment_DEFINED
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 GrGLuint renderbufferID() const { 43 GrGLuint renderbufferID() const {
44 return fRenderbufferID; 44 return fRenderbufferID;
45 } 45 }
46 46
47 const Format& format() const { return fFormat; } 47 const Format& format() const { return fFormat; }
48 48
49 protected: 49 protected:
50 // overrides of GrResource 50 // overrides of GrResource
51 void onRelease() override; 51 void onRelease() override;
52 void onAbandon() override; 52 void onAbandon() override;
53 void setMemoryBacking(SkTraceMemoryDump* traceMemoryDump,
54 const SkString& dumpName) const override;
53 55
54 private: 56 private:
55 size_t onGpuMemorySize() const override; 57 size_t onGpuMemorySize() const override;
56 58
57 Format fFormat; 59 Format fFormat;
58 // may be zero for external SBs associated with external RTs 60 // may be zero for external SBs associated with external RTs
59 // (we don't require the client to give us the id, just tell 61 // (we don't require the client to give us the id, just tell
60 // us how many bits of stencil there are). 62 // us how many bits of stencil there are).
61 GrGLuint fRenderbufferID; 63 GrGLuint fRenderbufferID;
62 64
63 typedef GrStencilAttachment INHERITED; 65 typedef GrStencilAttachment INHERITED;
64 }; 66 };
65 67
66 #endif 68 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLRenderTarget.cpp ('k') | src/gpu/gl/GrGLStencilAttachment.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698