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

Side by Side Diff: src/gpu/vk/GrVkTextureRenderTarget.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/vk/GrVkTexture.cpp ('k') | src/gpu/vk/GrVkTextureRenderTarget.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 2015 Google Inc. 2 * Copyright 2015 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 GrVkTextureRenderTarget_DEFINED 9 #ifndef GrVkTextureRenderTarget_DEFINED
10 #define GrVkTextureRenderTarget_DEFINED 10 #define GrVkTextureRenderTarget_DEFINED
(...skipping 10 matching lines...) Expand all
21 21
22 class GrVkImageView; 22 class GrVkImageView;
23 struct GrVkImageInfo; 23 struct GrVkImageInfo;
24 24
25 class GrVkTextureRenderTarget: public GrVkTexture, public GrVkRenderTarget { 25 class GrVkTextureRenderTarget: public GrVkTexture, public GrVkRenderTarget {
26 public: 26 public:
27 static GrVkTextureRenderTarget* CreateNewTextureRenderTarget(GrVkGpu*, SkBud geted, 27 static GrVkTextureRenderTarget* CreateNewTextureRenderTarget(GrVkGpu*, SkBud geted,
28 const GrSurface Desc&, 28 const GrSurface Desc&,
29 const GrVkImage ::ImageDesc&); 29 const GrVkImage ::ImageDesc&);
30 30
31 static GrVkTextureRenderTarget* CreateWrappedTextureRenderTarget(GrVkGpu*, 31 static sk_sp<GrVkTextureRenderTarget> MakeWrappedTextureRenderTarget(GrVkGpu *,
32 const GrSur faceDesc&, 32 const G rSurfaceDesc&,
33 GrWrapOwner ship, 33 GrWrapO wnership,
34 const GrVkI mageInfo*); 34 const G rVkImageInfo*);
35 35
36 bool updateForMipmap(GrVkGpu* gpu, const GrVkImageInfo& newInfo); 36 bool updateForMipmap(GrVkGpu* gpu, const GrVkImageInfo& newInfo);
37 37
38 protected: 38 protected:
39 void onAbandon() override { 39 void onAbandon() override {
40 GrVkRenderTarget::onAbandon(); 40 GrVkRenderTarget::onAbandon();
41 GrVkTexture::onAbandon(); 41 GrVkTexture::onAbandon();
42 } 42 }
43 43
44 void onRelease() override { 44 void onRelease() override {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 SkBudgeted budgeted, 110 SkBudgeted budgeted,
111 GrVkImage::Wrapped wrapped); 111 GrVkImage::Wrapped wrapped);
112 112
113 // GrGLRenderTarget accounts for the texture's memory and any MSAA renderbuf fer's memory. 113 // GrGLRenderTarget accounts for the texture's memory and any MSAA renderbuf fer's memory.
114 size_t onGpuMemorySize() const override { 114 size_t onGpuMemorySize() const override {
115 return GrVkRenderTarget::onGpuMemorySize(); 115 return GrVkRenderTarget::onGpuMemorySize();
116 } 116 }
117 }; 117 };
118 118
119 #endif 119 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkTexture.cpp ('k') | src/gpu/vk/GrVkTextureRenderTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698