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

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

Issue 937303002: Round stencil buffers dims up to next pow2 when allowed (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | src/gpu/GrDrawTargetCaps.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 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 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 "GrDrawTarget.h" 9 #include "GrDrawTarget.h"
10 10
(...skipping 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after
1073 fHWAALineSupport = false; 1073 fHWAALineSupport = false;
1074 fShaderDerivativeSupport = false; 1074 fShaderDerivativeSupport = false;
1075 fGeometryShaderSupport = false; 1075 fGeometryShaderSupport = false;
1076 fDualSourceBlendingSupport = false; 1076 fDualSourceBlendingSupport = false;
1077 fPathRenderingSupport = false; 1077 fPathRenderingSupport = false;
1078 fDstReadInShaderSupport = false; 1078 fDstReadInShaderSupport = false;
1079 fDiscardRenderTargetSupport = false; 1079 fDiscardRenderTargetSupport = false;
1080 fReuseScratchTextures = true; 1080 fReuseScratchTextures = true;
1081 fGpuTracingSupport = false; 1081 fGpuTracingSupport = false;
1082 fCompressedTexSubImageSupport = false; 1082 fCompressedTexSubImageSupport = false;
1083 fOversizedStencilSupport = false;
1083 1084
1084 fUseDrawInsteadOfClear = false; 1085 fUseDrawInsteadOfClear = false;
1085 1086
1086 fMapBufferFlags = kNone_MapFlags; 1087 fMapBufferFlags = kNone_MapFlags;
1087 1088
1088 fMaxRenderTargetSize = 0; 1089 fMaxRenderTargetSize = 0;
1089 fMaxTextureSize = 0; 1090 fMaxTextureSize = 0;
1090 fMaxSampleCount = 0; 1091 fMaxSampleCount = 0;
1091 1092
1092 fShaderPrecisionVaries = false; 1093 fShaderPrecisionVaries = false;
(...skipping 10 matching lines...) Expand all
1103 fHWAALineSupport = other.fHWAALineSupport; 1104 fHWAALineSupport = other.fHWAALineSupport;
1104 fShaderDerivativeSupport = other.fShaderDerivativeSupport; 1105 fShaderDerivativeSupport = other.fShaderDerivativeSupport;
1105 fGeometryShaderSupport = other.fGeometryShaderSupport; 1106 fGeometryShaderSupport = other.fGeometryShaderSupport;
1106 fDualSourceBlendingSupport = other.fDualSourceBlendingSupport; 1107 fDualSourceBlendingSupport = other.fDualSourceBlendingSupport;
1107 fPathRenderingSupport = other.fPathRenderingSupport; 1108 fPathRenderingSupport = other.fPathRenderingSupport;
1108 fDstReadInShaderSupport = other.fDstReadInShaderSupport; 1109 fDstReadInShaderSupport = other.fDstReadInShaderSupport;
1109 fDiscardRenderTargetSupport = other.fDiscardRenderTargetSupport; 1110 fDiscardRenderTargetSupport = other.fDiscardRenderTargetSupport;
1110 fReuseScratchTextures = other.fReuseScratchTextures; 1111 fReuseScratchTextures = other.fReuseScratchTextures;
1111 fGpuTracingSupport = other.fGpuTracingSupport; 1112 fGpuTracingSupport = other.fGpuTracingSupport;
1112 fCompressedTexSubImageSupport = other.fCompressedTexSubImageSupport; 1113 fCompressedTexSubImageSupport = other.fCompressedTexSubImageSupport;
1114 fOversizedStencilSupport = other.fOversizedStencilSupport;
1113 1115
1114 fUseDrawInsteadOfClear = other.fUseDrawInsteadOfClear; 1116 fUseDrawInsteadOfClear = other.fUseDrawInsteadOfClear;
1115 1117
1116 fMapBufferFlags = other.fMapBufferFlags; 1118 fMapBufferFlags = other.fMapBufferFlags;
1117 1119
1118 fMaxRenderTargetSize = other.fMaxRenderTargetSize; 1120 fMaxRenderTargetSize = other.fMaxRenderTargetSize;
1119 fMaxTextureSize = other.fMaxTextureSize; 1121 fMaxTextureSize = other.fMaxTextureSize;
1120 fMaxSampleCount = other.fMaxSampleCount; 1122 fMaxSampleCount = other.fMaxSampleCount;
1121 1123
1122 memcpy(fConfigRenderSupport, other.fConfigRenderSupport, sizeof(fConfigRende rSupport)); 1124 memcpy(fConfigRenderSupport, other.fConfigRenderSupport, sizeof(fConfigRende rSupport));
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
1185 r.appendf("HW AA Lines Support : %s\n", gNY[fHWAALineSupport] ); 1187 r.appendf("HW AA Lines Support : %s\n", gNY[fHWAALineSupport] );
1186 r.appendf("Shader Derivative Support : %s\n", gNY[fShaderDerivative Support]); 1188 r.appendf("Shader Derivative Support : %s\n", gNY[fShaderDerivative Support]);
1187 r.appendf("Geometry Shader Support : %s\n", gNY[fGeometryShaderSu pport]); 1189 r.appendf("Geometry Shader Support : %s\n", gNY[fGeometryShaderSu pport]);
1188 r.appendf("Dual Source Blending Support : %s\n", gNY[fDualSourceBlendi ngSupport]); 1190 r.appendf("Dual Source Blending Support : %s\n", gNY[fDualSourceBlendi ngSupport]);
1189 r.appendf("Path Rendering Support : %s\n", gNY[fPathRenderingSup port]); 1191 r.appendf("Path Rendering Support : %s\n", gNY[fPathRenderingSup port]);
1190 r.appendf("Dst Read In Shader Support : %s\n", gNY[fDstReadInShaderS upport]); 1192 r.appendf("Dst Read In Shader Support : %s\n", gNY[fDstReadInShaderS upport]);
1191 r.appendf("Discard Render Target Support : %s\n", gNY[fDiscardRenderTar getSupport]); 1193 r.appendf("Discard Render Target Support : %s\n", gNY[fDiscardRenderTar getSupport]);
1192 r.appendf("Reuse Scratch Textures : %s\n", gNY[fReuseScratchText ures]); 1194 r.appendf("Reuse Scratch Textures : %s\n", gNY[fReuseScratchText ures]);
1193 r.appendf("Gpu Tracing Support : %s\n", gNY[fGpuTracingSuppor t]); 1195 r.appendf("Gpu Tracing Support : %s\n", gNY[fGpuTracingSuppor t]);
1194 r.appendf("Compressed Update Support : %s\n", gNY[fCompressedTexSub ImageSupport]); 1196 r.appendf("Compressed Update Support : %s\n", gNY[fCompressedTexSub ImageSupport]);
1195 1197 r.appendf("Oversized Stencil Support : %s\n", gNY[fOversizedStencil Support]);
1196 r.appendf("Draw Instead of Clear [workaround] : %s\n", gNY[fUseDrawInsteadOf Clear]); 1198 r.appendf("Draw Instead of Clear [workaround] : %s\n", gNY[fUseDrawInsteadOf Clear]);
1197 1199
1198 r.appendf("Max Texture Size : %d\n", fMaxTextureSize); 1200 r.appendf("Max Texture Size : %d\n", fMaxTextureSize);
1199 r.appendf("Max Render Target Size : %d\n", fMaxRenderTargetSize) ; 1201 r.appendf("Max Render Target Size : %d\n", fMaxRenderTargetSize) ;
1200 r.appendf("Max Sample Count : %d\n", fMaxSampleCount); 1202 r.appendf("Max Sample Count : %d\n", fMaxSampleCount);
1201 1203
1202 r.appendf("Map Buffer Support : %s\n", 1204 r.appendf("Map Buffer Support : %s\n",
1203 map_flags_to_string(fMapBufferFlags).c_str()); 1205 map_flags_to_string(fMapBufferFlags).c_str());
1204 1206
1205 static const char* kConfigNames[] = { 1207 static const char* kConfigNames[] = {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 GrPipelineBuilder::AutoRestoreStencil* ars, 1290 GrPipelineBuilder::AutoRestoreStencil* ars,
1289 GrScissorState* scissorState, 1291 GrScissorState* scissorState,
1290 const SkRect* devBounds) { 1292 const SkRect* devBounds) {
1291 return fClipMaskManager.setupClipping(pipelineBuilder, 1293 return fClipMaskManager.setupClipping(pipelineBuilder,
1292 are, 1294 are,
1293 ars, 1295 ars,
1294 scissorState, 1296 scissorState,
1295 this->getClip(), 1297 this->getClip(),
1296 devBounds); 1298 devBounds);
1297 } 1299 }
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrDrawTargetCaps.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698