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

Side by Side Diff: src/gpu/vk/GrVkRenderTarget.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/GrVkGpu.cpp ('k') | src/gpu/vk/GrVkRenderTarget.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 GrVkRenderTarget_DEFINED 9 #ifndef GrVkRenderTarget_DEFINED
10 #define GrVkRenderTarget_DEFINED 10 #define GrVkRenderTarget_DEFINED
(...skipping 16 matching lines...) Expand all
27 // Windows gives bogus warnings about inheriting asTexture/asRenderTarget via do minance. 27 // Windows gives bogus warnings about inheriting asTexture/asRenderTarget via do minance.
28 #pragma warning(push) 28 #pragma warning(push)
29 #pragma warning(disable: 4250) 29 #pragma warning(disable: 4250)
30 #endif 30 #endif
31 31
32 class GrVkRenderTarget: public GrRenderTarget, public virtual GrVkImage { 32 class GrVkRenderTarget: public GrRenderTarget, public virtual GrVkImage {
33 public: 33 public:
34 static GrVkRenderTarget* CreateNewRenderTarget(GrVkGpu*, SkBudgeted, const G rSurfaceDesc&, 34 static GrVkRenderTarget* CreateNewRenderTarget(GrVkGpu*, SkBudgeted, const G rSurfaceDesc&,
35 const GrVkImage::ImageDesc&); 35 const GrVkImage::ImageDesc&);
36 36
37 static GrVkRenderTarget* CreateWrappedRenderTarget(GrVkGpu*, const GrSurface Desc&, 37 static sk_sp<GrVkRenderTarget> MakeWrappedRenderTarget(GrVkGpu*, const GrSur faceDesc&,
38 GrWrapOwnership, 38 GrWrapOwnership,
39 const GrVkImageInfo*); 39 const GrVkImageInfo*) ;
40 40
41 ~GrVkRenderTarget() override; 41 ~GrVkRenderTarget() override;
42 42
43 const GrVkFramebuffer* framebuffer() const { return fFramebuffer; } 43 const GrVkFramebuffer* framebuffer() const { return fFramebuffer; }
44 const GrVkImageView* colorAttachmentView() const { return fColorAttachmentVi ew; } 44 const GrVkImageView* colorAttachmentView() const { return fColorAttachmentVi ew; }
45 const GrVkResource* msaaImageResource() const { 45 const GrVkResource* msaaImageResource() const {
46 if (fMSAAImage) { 46 if (fMSAAImage) {
47 return fMSAAImage->fResource; 47 return fMSAAImage->fResource;
48 } 48 }
49 return nullptr; 49 return nullptr;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 int fColorValuesPerPixel; 141 int fColorValuesPerPixel;
142 142
143 // This is a cached pointer to a simple render pass. The render target shoul d unref it 143 // This is a cached pointer to a simple render pass. The render target shoul d unref it
144 // once it is done with it. 144 // once it is done with it.
145 const GrVkRenderPass* fCachedSimpleRenderPass; 145 const GrVkRenderPass* fCachedSimpleRenderPass;
146 // This is a handle to be used to quickly get compatible GrVkRenderPasses fo r this render target 146 // This is a handle to be used to quickly get compatible GrVkRenderPasses fo r this render target
147 GrVkResourceProvider::CompatibleRPHandle fCompatibleRPHandle; 147 GrVkResourceProvider::CompatibleRPHandle fCompatibleRPHandle;
148 }; 148 };
149 149
150 #endif 150 #endif
OLDNEW
« no previous file with comments | « src/gpu/vk/GrVkGpu.cpp ('k') | src/gpu/vk/GrVkRenderTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698