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

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

Issue 1204773003: Revert of Refactor GrBufferAllocPools to use resource cache (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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/GrBufferAllocPool.cpp ('k') | src/gpu/GrGpu.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 /* 2 /*
3 * Copyright 2015 Google Inc. 3 * Copyright 2015 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "GrCaps.h" 9 #include "GrCaps.h"
10 #include "GrContextOptions.h" 10 #include "GrContextOptions.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 /////////////////////////////////////////////////////////////////////////////// 80 ///////////////////////////////////////////////////////////////////////////////
81 81
82 GrCaps::GrCaps(const GrContextOptions& options) { 82 GrCaps::GrCaps(const GrContextOptions& options) {
83 fMipMapSupport = false; 83 fMipMapSupport = false;
84 fNPOTTextureTileSupport = false; 84 fNPOTTextureTileSupport = false;
85 fTwoSidedStencilSupport = false; 85 fTwoSidedStencilSupport = false;
86 fStencilWrapOpsSupport = false; 86 fStencilWrapOpsSupport = false;
87 fDiscardRenderTargetSupport = false; 87 fDiscardRenderTargetSupport = false;
88 fReuseScratchTextures = true; 88 fReuseScratchTextures = true;
89 fReuseScratchBuffers = true;
90 fGpuTracingSupport = false; 89 fGpuTracingSupport = false;
91 fCompressedTexSubImageSupport = false; 90 fCompressedTexSubImageSupport = false;
92 fOversizedStencilSupport = false; 91 fOversizedStencilSupport = false;
93 fTextureBarrierSupport = false; 92 fTextureBarrierSupport = false;
94 93
95 fUseDrawInsteadOfClear = false; 94 fUseDrawInsteadOfClear = false;
96 95
97 fBlendEquationSupport = kBasic_BlendEquationSupport; 96 fBlendEquationSupport = kBasic_BlendEquationSupport;
98 fAdvBlendEqBlacklist = 0; 97 fAdvBlendEqBlacklist = 0;
99 98
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 139
141 SkString GrCaps::dump() const { 140 SkString GrCaps::dump() const {
142 SkString r; 141 SkString r;
143 static const char* gNY[] = {"NO", "YES"}; 142 static const char* gNY[] = {"NO", "YES"};
144 r.appendf("MIP Map Support : %s\n", gNY[fMipMapSupport]); 143 r.appendf("MIP Map Support : %s\n", gNY[fMipMapSupport]);
145 r.appendf("NPOT Texture Tile Support : %s\n", gNY[fNPOTTextureTileS upport]); 144 r.appendf("NPOT Texture Tile Support : %s\n", gNY[fNPOTTextureTileS upport]);
146 r.appendf("Two Sided Stencil Support : %s\n", gNY[fTwoSidedStencilS upport]); 145 r.appendf("Two Sided Stencil Support : %s\n", gNY[fTwoSidedStencilS upport]);
147 r.appendf("Stencil Wrap Ops Support : %s\n", gNY[fStencilWrapOpsSu pport]); 146 r.appendf("Stencil Wrap Ops Support : %s\n", gNY[fStencilWrapOpsSu pport]);
148 r.appendf("Discard Render Target Support : %s\n", gNY[fDiscardRenderTar getSupport]); 147 r.appendf("Discard Render Target Support : %s\n", gNY[fDiscardRenderTar getSupport]);
149 r.appendf("Reuse Scratch Textures : %s\n", gNY[fReuseScratchText ures]); 148 r.appendf("Reuse Scratch Textures : %s\n", gNY[fReuseScratchText ures]);
150 r.appendf("Reuse Scratch Buffers : %s\n", gNY[fReuseScratchBuff ers]);
151 r.appendf("Gpu Tracing Support : %s\n", gNY[fGpuTracingSuppor t]); 149 r.appendf("Gpu Tracing Support : %s\n", gNY[fGpuTracingSuppor t]);
152 r.appendf("Compressed Update Support : %s\n", gNY[fCompressedTexSub ImageSupport]); 150 r.appendf("Compressed Update Support : %s\n", gNY[fCompressedTexSub ImageSupport]);
153 r.appendf("Oversized Stencil Support : %s\n", gNY[fOversizedStencil Support]); 151 r.appendf("Oversized Stencil Support : %s\n", gNY[fOversizedStencil Support]);
154 r.appendf("Texture Barrier Support : %s\n", gNY[fTextureBarrierSu pport]); 152 r.appendf("Texture Barrier Support : %s\n", gNY[fTextureBarrierSu pport]);
155 r.appendf("Draw Instead of Clear [workaround] : %s\n", gNY[fUseDrawInsteadOf Clear]); 153 r.appendf("Draw Instead of Clear [workaround] : %s\n", gNY[fUseDrawInsteadOf Clear]);
156 r.appendf("Draw Instead of TexSubImage [workaround] : %s\n", 154 r.appendf("Draw Instead of TexSubImage [workaround] : %s\n",
157 gNY[fUseDrawInsteadOfPartialRenderTargetWrite]); 155 gNY[fUseDrawInsteadOfPartialRenderTargetWrite]);
158 if (this->advancedBlendEquationSupport()) { 156 if (this->advancedBlendEquationSupport()) {
159 r.appendf("Advanced Blend Equation Blacklist : 0x%x\n", fAdvBlendEqBlac klist); 157 r.appendf("Advanced Blend Equation Blacklist : 0x%x\n", fAdvBlendEqBlac klist);
160 } 158 }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 SkASSERT(!fConfigTextureSupport[kUnknown_GrPixelConfig]); 224 SkASSERT(!fConfigTextureSupport[kUnknown_GrPixelConfig]);
227 225
228 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { 226 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) {
229 r.appendf("%s is uploadable to a texture: %s\n", 227 r.appendf("%s is uploadable to a texture: %s\n",
230 kConfigNames[i], 228 kConfigNames[i],
231 gNY[fConfigTextureSupport[i]]); 229 gNY[fConfigTextureSupport[i]]);
232 } 230 }
233 231
234 return r; 232 return r;
235 } 233 }
OLDNEW
« no previous file with comments | « src/gpu/GrBufferAllocPool.cpp ('k') | src/gpu/GrGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698