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

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

Issue 2467593002: Move memoization of multisample specs id to GrRenderTarget (Closed)
Patch Set: Move memoization of multisample specs id to GrRenderTarget 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/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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height, 76 bool onGetWritePixelsInfo(GrSurface* dstSurface, int width, int height,
77 GrPixelConfig srcConfig, DrawPreference*, 77 GrPixelConfig srcConfig, DrawPreference*,
78 WritePixelTempDrawInfo*) override; 78 WritePixelTempDrawInfo*) override;
79 79
80 bool onCopySurface(GrSurface* dst, 80 bool onCopySurface(GrSurface* dst,
81 GrSurface* src, 81 GrSurface* src,
82 const SkIRect& srcRect, 82 const SkIRect& srcRect,
83 const SkIPoint& dstPoint) override; 83 const SkIPoint& dstPoint) override;
84 84
85 void onGetMultisampleSpecs(GrRenderTarget* rt, const GrStencilSettings&, 85 void onQueryMultisampleSpecs(GrRenderTarget* rt, const GrStencilSettings&,
86 int* effectiveSampleCnt, SamplePattern*) override ; 86 int* effectiveSampleCnt, SamplePattern*) overri de;
87 87
88 bool initDescForDstCopy(const GrRenderTarget* src, GrSurfaceDesc* desc) cons t override; 88 bool initDescForDstCopy(const GrRenderTarget* src, GrSurfaceDesc* desc) cons t override;
89 89
90 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {} 90 void xferBarrier(GrRenderTarget*, GrXferBarrierType) override {}
91 91
92 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h, 92 GrBackendObject createTestingOnlyBackendTexture(void* pixels, int w, int h,
93 GrPixelConfig config, 93 GrPixelConfig config,
94 bool isRenderTarget) overrid e; 94 bool isRenderTarget) overrid e;
95 bool isTestingOnlyBackendTexture(GrBackendObject id) const override; 95 bool isTestingOnlyBackendTexture(GrBackendObject id) const override;
96 void deleteTestingOnlyBackendTexture(GrBackendObject id, bool abandonTexture ) override; 96 void deleteTestingOnlyBackendTexture(GrBackendObject id, bool abandonTexture ) override;
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 #else 283 #else
284 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once 284 // Shaderc compiler used for compiling glsl in spirv. We only want to create the compiler once
285 // since there is significant overhead to the first compile of any compiler. 285 // since there is significant overhead to the first compile of any compiler.
286 shaderc_compiler_t fCompiler; 286 shaderc_compiler_t fCompiler;
287 #endif 287 #endif
288 288
289 typedef GrGpu INHERITED; 289 typedef GrGpu INHERITED;
290 }; 290 };
291 291
292 #endif 292 #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