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

Side by Side Diff: src/gpu/vk/GrVkGpu.h

Issue 2093943002: Have gpu createTestingOlyBackendTexture know if it is a render target or not (Closed) Base URL: https://skia.googlesource.com/skia.git@moreUnitTests
Patch Set: Have gpu createTestingOlyBackendTexture know if it is a render target or not Created 4 years, 6 months 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/GrGLGpu.cpp ('k') | src/gpu/vk/GrVkGpu.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 #ifndef GrVkGpu_DEFINED 8 #ifndef GrVkGpu_DEFINED
9 #define GrVkGpu_DEFINED 9 #define GrVkGpu_DEFINED
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 void onGetMultisampleSpecs(GrRenderTarget* rt, 73 void onGetMultisampleSpecs(GrRenderTarget* rt,
74 const GrStencilSettings&, 74 const GrStencilSettings&,
75 int* effectiveSampleCnt, 75 int* effectiveSampleCnt,
76 SkAutoTDeleteArray<SkPoint>*) override; 76 SkAutoTDeleteArray<SkPoint>*) override;
77 77
78 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const override; 78 bool initCopySurfaceDstDesc(const GrSurface* src, GrSurfaceDesc* desc) const override;
79 79
80 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} 80 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {}
81 81
82 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, 82 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h,
83 GrPixelConfig config) overri de; 83 GrPixelConfig config,
84 bool isRenderTarget) overrid e;
84 bool isTestingOnlyBackendTexture(GrBackendObject id) const override; 85 bool isTestingOnlyBackendTexture(GrBackendObject id) const override;
85 void deleteTestingOnlyBackendTexture(GrBackendObject id, bool abandonTexture ) override; 86 void deleteTestingOnlyBackendTexture(GrBackendObject id, bool abandonTexture ) override;
86 87
87 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa rget*, 88 GrStencilAttachment* createStencilAttachmentForRenderTarget(const GrRenderTa rget*,
88 int width, 89 int width,
89 int height) over ride; 90 int height) over ride;
90 91
91 void clearStencil(GrRenderTarget* target) override; 92 void clearStencil(GrRenderTarget* target) override;
92 93
93 GrGpuCommandBuffer* createCommandBuffer( 94 GrGpuCommandBuffer* createCommandBuffer(
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 242
242 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once 243 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once
243 // since there is significant overhead to the first compile of any compiler. 244 // since there is significant overhead to the first compile of any compiler.
244 shaderc_compiler_t fCompiler; 245 shaderc_compiler_t fCompiler;
245 246
246 247
247 typedef GrGpu INHERITED; 248 typedef GrGpu INHERITED;
248 }; 249 };
249 250
250 #endif 251 #endif
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLGpu.cpp ('k') | src/gpu/vk/GrVkGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698