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

Side by Side Diff: src/gpu/GrCaps.cpp

Issue 2143333002: Add resource provider flag to avoid client-side buffers (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add resource provider flag to avoid client-side buffers Created 4 years, 5 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/GrBuffer.cpp ('k') | src/gpu/GrGpu.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 "GrCaps.h" 8 #include "GrCaps.h"
9 #include "GrContextOptions.h" 9 #include "GrContextOptions.h"
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 fDiscardRenderTargetSupport = false; 91 fDiscardRenderTargetSupport = false;
92 fReuseScratchTextures = true; 92 fReuseScratchTextures = true;
93 fReuseScratchBuffers = true; 93 fReuseScratchBuffers = true;
94 fGpuTracingSupport = false; 94 fGpuTracingSupport = false;
95 fCompressedTexSubImageSupport = false; 95 fCompressedTexSubImageSupport = false;
96 fOversizedStencilSupport = false; 96 fOversizedStencilSupport = false;
97 fTextureBarrierSupport = false; 97 fTextureBarrierSupport = false;
98 fSampleLocationsSupport = false; 98 fSampleLocationsSupport = false;
99 fMultisampleDisableSupport = false; 99 fMultisampleDisableSupport = false;
100 fUsesMixedSamples = false; 100 fUsesMixedSamples = false;
101 fPreferClientSideDynamicBuffers = false;
101 fSupportsInstancedDraws = false; 102 fSupportsInstancedDraws = false;
102 fFullClearIsFree = false; 103 fFullClearIsFree = false;
103 fMustClearUploadedBufferData = false; 104 fMustClearUploadedBufferData = false;
104 fSampleShadingSupport = false; 105 fSampleShadingSupport = false;
105 106
106 fUseDrawInsteadOfClear = false; 107 fUseDrawInsteadOfClear = false;
107 108
108 fBlendEquationSupport = kBasic_BlendEquationSupport; 109 fBlendEquationSupport = kBasic_BlendEquationSupport;
109 fAdvBlendEqBlacklist = 0; 110 fAdvBlendEqBlacklist = 0;
110 111
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 r.appendf("Discard Render Target Support : %s\n", gNY[fDiscardRenderTar getSupport]); 170 r.appendf("Discard Render Target Support : %s\n", gNY[fDiscardRenderTar getSupport]);
170 r.appendf("Reuse Scratch Textures : %s\n", gNY[fReuseScratchText ures]); 171 r.appendf("Reuse Scratch Textures : %s\n", gNY[fReuseScratchText ures]);
171 r.appendf("Reuse Scratch Buffers : %s\n", gNY[fReuseScratchBuff ers]); 172 r.appendf("Reuse Scratch Buffers : %s\n", gNY[fReuseScratchBuff ers]);
172 r.appendf("Gpu Tracing Support : %s\n", gNY[fGpuTracingSuppor t]); 173 r.appendf("Gpu Tracing Support : %s\n", gNY[fGpuTracingSuppor t]);
173 r.appendf("Compressed Update Support : %s\n", gNY[fCompressedTexSub ImageSupport]); 174 r.appendf("Compressed Update Support : %s\n", gNY[fCompressedTexSub ImageSupport]);
174 r.appendf("Oversized Stencil Support : %s\n", gNY[fOversizedStencil Support]); 175 r.appendf("Oversized Stencil Support : %s\n", gNY[fOversizedStencil Support]);
175 r.appendf("Texture Barrier Support : %s\n", gNY[fTextureBarrierSu pport]); 176 r.appendf("Texture Barrier Support : %s\n", gNY[fTextureBarrierSu pport]);
176 r.appendf("Sample Locations Support : %s\n", gNY[fSampleLocationsS upport]); 177 r.appendf("Sample Locations Support : %s\n", gNY[fSampleLocationsS upport]);
177 r.appendf("Multisample disable support : %s\n", gNY[fMultisampleDisab leSupport]); 178 r.appendf("Multisample disable support : %s\n", gNY[fMultisampleDisab leSupport]);
178 r.appendf("Uses Mixed Samples : %s\n", gNY[fUsesMixedSamples ]); 179 r.appendf("Uses Mixed Samples : %s\n", gNY[fUsesMixedSamples ]);
180 r.appendf("Prefer client-side dynamic buffers : %s\n", gNY[fPreferClientSide DynamicBuffers]);
179 r.appendf("Supports instanced draws : %s\n", gNY[fSupportsInstance dDraws]); 181 r.appendf("Supports instanced draws : %s\n", gNY[fSupportsInstance dDraws]);
180 r.appendf("Full screen clear is free : %s\n", gNY[fFullClearIsFree] ); 182 r.appendf("Full screen clear is free : %s\n", gNY[fFullClearIsFree] );
181 r.appendf("Must clear buffer memory : %s\n", gNY[fMustClearUploade dBufferData]); 183 r.appendf("Must clear buffer memory : %s\n", gNY[fMustClearUploade dBufferData]);
182 r.appendf("Draw Instead of Clear [workaround] : %s\n", gNY[fUseDrawInsteadOf Clear]); 184 r.appendf("Draw Instead of Clear [workaround] : %s\n", gNY[fUseDrawInsteadOf Clear]);
183 r.appendf("Draw Instead of TexSubImage [workaround] : %s\n", 185 r.appendf("Draw Instead of TexSubImage [workaround] : %s\n",
184 gNY[fUseDrawInsteadOfPartialRenderTargetWrite]); 186 gNY[fUseDrawInsteadOfPartialRenderTargetWrite]);
185 r.appendf("Prefer VRAM Use over flushes [workaround] : %s\n", gNY[fPreferVRA MUseOverFlushes]); 187 r.appendf("Prefer VRAM Use over flushes [workaround] : %s\n", gNY[fPreferVRA MUseOverFlushes]);
186 188
187 if (this->advancedBlendEquationSupport()) { 189 if (this->advancedBlendEquationSupport()) {
188 r.appendf("Advanced Blend Equation Blacklist : 0x%x\n", fAdvBlendEqBlac klist); 190 r.appendf("Advanced Blend Equation Blacklist : 0x%x\n", fAdvBlendEqBlac klist);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 263
262 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { 264 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) {
263 GrPixelConfig config = static_cast<GrPixelConfig>(i); 265 GrPixelConfig config = static_cast<GrPixelConfig>(i);
264 r.appendf("%s is uploadable to a texture: %s\n", 266 r.appendf("%s is uploadable to a texture: %s\n",
265 kConfigNames[i], 267 kConfigNames[i],
266 gNY[this->isConfigTexturable(config)]); 268 gNY[this->isConfigTexturable(config)]);
267 } 269 }
268 270
269 return r; 271 return r;
270 } 272 }
OLDNEW
« no previous file with comments | « src/gpu/GrBuffer.cpp ('k') | src/gpu/GrGpu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698