OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |