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

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

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/GrGLTextureRenderTarget.h ('k') | src/gpu/vk/GrVkGpu.h » ('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 #include "GrGLTextureRenderTarget.h" 8 #include "GrGLTextureRenderTarget.h"
9 9
10 #include "SkTraceMemoryDump.h" 10 #include "SkTraceMemoryDump.h"
(...skipping 26 matching lines...) Expand all
37 traceMemoryDump->setMemoryBacking(dumpName.c_str(), "gl_texture", 37 traceMemoryDump->setMemoryBacking(dumpName.c_str(), "gl_texture",
38 texture_id.c_str()); 38 texture_id.c_str());
39 } 39 }
40 40
41 bool GrGLTextureRenderTarget::canAttemptStencilAttachment() const { 41 bool GrGLTextureRenderTarget::canAttemptStencilAttachment() const {
42 // The RT FBO of GrGLTextureRenderTarget is never created from a 42 // The RT FBO of GrGLTextureRenderTarget is never created from a
43 // wrapped FBO. 43 // wrapped FBO.
44 return true; 44 return true;
45 } 45 }
46 46
47 GrGLTextureRenderTarget* GrGLTextureRenderTarget::CreateWrapped(GrGLGpu* gpu, 47 sk_sp<GrGLTextureRenderTarget> GrGLTextureRenderTarget::MakeWrapped(
48 const GrSurfaceD esc& desc, 48 GrGLGpu* gpu, const GrSurfaceDesc& desc,
49 const GrGLTextur e::IDDesc& texIDDesc, 49 const GrGLTexture::IDDesc& texIDDesc, const GrGLRenderTarget::IDDesc& rtIDDe sc)
50 const GrGLRender Target::IDDesc& rtIDDesc) { 50 {
51 return new GrGLTextureRenderTarget(gpu, desc, texIDDesc, rtIDDesc); 51 return sk_sp<GrGLTextureRenderTarget>(
52 new GrGLTextureRenderTarget(gpu, desc, texIDDesc, rtIDDesc));
52 } 53 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLTextureRenderTarget.h ('k') | src/gpu/vk/GrVkGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698