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

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

Issue 2448593002: Remove SkAutoTUnref and SkAutoTDelete from public includes. (Closed)
Patch Set: And Vulcan. Created 4 years, 1 month 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/GrGLTexture.cpp ('k') | src/gpu/gl/GrGLTextureRenderTarget.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 2014 Google Inc. 2 * Copyright 2014 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 GrGLTextureRenderTarget_DEFINED 9 #ifndef GrGLTextureRenderTarget_DEFINED
10 #define GrGLTextureRenderTarget_DEFINED 10 #define GrGLTextureRenderTarget_DEFINED
(...skipping 22 matching lines...) Expand all
33 : GrSurface(gpu, desc) 33 : GrSurface(gpu, desc)
34 , GrGLTexture(gpu, desc, texIDDesc) 34 , GrGLTexture(gpu, desc, texIDDesc)
35 , GrGLRenderTarget(gpu, desc, rtIDDesc) { 35 , GrGLRenderTarget(gpu, desc, rtIDDesc) {
36 this->registerWithCache(budgeted); 36 this->registerWithCache(budgeted);
37 } 37 }
38 38
39 bool canAttemptStencilAttachment() const override; 39 bool canAttemptStencilAttachment() const override;
40 40
41 void dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const override ; 41 void dumpMemoryStatistics(SkTraceMemoryDump* traceMemoryDump) const override ;
42 42
43 static GrGLTextureRenderTarget* CreateWrapped(GrGLGpu* gpu, const GrSurfaceD esc& desc, 43 static sk_sp<GrGLTextureRenderTarget> MakeWrapped(GrGLGpu* gpu, const GrSurf aceDesc& desc,
44 const GrGLTexture::IDDesc& tex IDDesc, 44 const GrGLTexture::IDDesc& texIDDesc,
45 const GrGLRenderTarget::IDDesc & rtIDDesc); 45 const GrGLRenderTarget::ID Desc& rtIDDesc);
46 protected: 46 protected:
47 void onAbandon() override { 47 void onAbandon() override {
48 GrGLRenderTarget::onAbandon(); 48 GrGLRenderTarget::onAbandon();
49 GrGLTexture::onAbandon(); 49 GrGLTexture::onAbandon();
50 } 50 }
51 51
52 void onRelease() override { 52 void onRelease() override {
53 GrGLRenderTarget::onRelease(); 53 GrGLRenderTarget::onRelease();
54 GrGLTexture::onRelease(); 54 GrGLTexture::onRelease();
55 } 55 }
(...skipping 15 matching lines...) Expand all
71 return GrGLRenderTarget::onGpuMemorySize(); 71 return GrGLRenderTarget::onGpuMemorySize();
72 } 72 }
73 73
74 }; 74 };
75 75
76 #ifdef SK_BUILD_FOR_WIN 76 #ifdef SK_BUILD_FOR_WIN
77 #pragma warning(pop) 77 #pragma warning(pop)
78 #endif 78 #endif
79 79
80 #endif 80 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLTexture.cpp ('k') | src/gpu/gl/GrGLTextureRenderTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698