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

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

Issue 1090163002: Import glTextureBarrier (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 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 | « include/gpu/gl/GrGLInterface.h ('k') | 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 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after
1056 fShaderDerivativeSupport = false; 1056 fShaderDerivativeSupport = false;
1057 fGeometryShaderSupport = false; 1057 fGeometryShaderSupport = false;
1058 fDualSourceBlendingSupport = false; 1058 fDualSourceBlendingSupport = false;
1059 fPathRenderingSupport = false; 1059 fPathRenderingSupport = false;
1060 fDstReadInShaderSupport = false; 1060 fDstReadInShaderSupport = false;
1061 fDiscardRenderTargetSupport = false; 1061 fDiscardRenderTargetSupport = false;
1062 fReuseScratchTextures = true; 1062 fReuseScratchTextures = true;
1063 fGpuTracingSupport = false; 1063 fGpuTracingSupport = false;
1064 fCompressedTexSubImageSupport = false; 1064 fCompressedTexSubImageSupport = false;
1065 fOversizedStencilSupport = false; 1065 fOversizedStencilSupport = false;
1066 fTextureBarrierSupport = false;
1066 1067
1067 fUseDrawInsteadOfClear = false; 1068 fUseDrawInsteadOfClear = false;
1068 1069
1069 fMapBufferFlags = kNone_MapFlags; 1070 fMapBufferFlags = kNone_MapFlags;
1070 1071
1071 fMaxRenderTargetSize = 0; 1072 fMaxRenderTargetSize = 0;
1072 fMaxTextureSize = 0; 1073 fMaxTextureSize = 0;
1073 fMaxSampleCount = 0; 1074 fMaxSampleCount = 0;
1074 1075
1075 fShaderPrecisionVaries = false; 1076 fShaderPrecisionVaries = false;
(...skipping 10 matching lines...) Expand all
1086 fShaderDerivativeSupport = other.fShaderDerivativeSupport; 1087 fShaderDerivativeSupport = other.fShaderDerivativeSupport;
1087 fGeometryShaderSupport = other.fGeometryShaderSupport; 1088 fGeometryShaderSupport = other.fGeometryShaderSupport;
1088 fDualSourceBlendingSupport = other.fDualSourceBlendingSupport; 1089 fDualSourceBlendingSupport = other.fDualSourceBlendingSupport;
1089 fPathRenderingSupport = other.fPathRenderingSupport; 1090 fPathRenderingSupport = other.fPathRenderingSupport;
1090 fDstReadInShaderSupport = other.fDstReadInShaderSupport; 1091 fDstReadInShaderSupport = other.fDstReadInShaderSupport;
1091 fDiscardRenderTargetSupport = other.fDiscardRenderTargetSupport; 1092 fDiscardRenderTargetSupport = other.fDiscardRenderTargetSupport;
1092 fReuseScratchTextures = other.fReuseScratchTextures; 1093 fReuseScratchTextures = other.fReuseScratchTextures;
1093 fGpuTracingSupport = other.fGpuTracingSupport; 1094 fGpuTracingSupport = other.fGpuTracingSupport;
1094 fCompressedTexSubImageSupport = other.fCompressedTexSubImageSupport; 1095 fCompressedTexSubImageSupport = other.fCompressedTexSubImageSupport;
1095 fOversizedStencilSupport = other.fOversizedStencilSupport; 1096 fOversizedStencilSupport = other.fOversizedStencilSupport;
1097 fTextureBarrierSupport = other.fTextureBarrierSupport;
1096 1098
1097 fUseDrawInsteadOfClear = other.fUseDrawInsteadOfClear; 1099 fUseDrawInsteadOfClear = other.fUseDrawInsteadOfClear;
1098 1100
1099 fMapBufferFlags = other.fMapBufferFlags; 1101 fMapBufferFlags = other.fMapBufferFlags;
1100 1102
1101 fMaxRenderTargetSize = other.fMaxRenderTargetSize; 1103 fMaxRenderTargetSize = other.fMaxRenderTargetSize;
1102 fMaxTextureSize = other.fMaxTextureSize; 1104 fMaxTextureSize = other.fMaxTextureSize;
1103 fMaxSampleCount = other.fMaxSampleCount; 1105 fMaxSampleCount = other.fMaxSampleCount;
1104 1106
1105 memcpy(fConfigRenderSupport, other.fConfigRenderSupport, sizeof(fConfigRende rSupport)); 1107 memcpy(fConfigRenderSupport, other.fConfigRenderSupport, sizeof(fConfigRende rSupport));
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 r.appendf("Shader Derivative Support : %s\n", gNY[fShaderDerivative Support]); 1170 r.appendf("Shader Derivative Support : %s\n", gNY[fShaderDerivative Support]);
1169 r.appendf("Geometry Shader Support : %s\n", gNY[fGeometryShaderSu pport]); 1171 r.appendf("Geometry Shader Support : %s\n", gNY[fGeometryShaderSu pport]);
1170 r.appendf("Dual Source Blending Support : %s\n", gNY[fDualSourceBlendi ngSupport]); 1172 r.appendf("Dual Source Blending Support : %s\n", gNY[fDualSourceBlendi ngSupport]);
1171 r.appendf("Path Rendering Support : %s\n", gNY[fPathRenderingSup port]); 1173 r.appendf("Path Rendering Support : %s\n", gNY[fPathRenderingSup port]);
1172 r.appendf("Dst Read In Shader Support : %s\n", gNY[fDstReadInShaderS upport]); 1174 r.appendf("Dst Read In Shader Support : %s\n", gNY[fDstReadInShaderS upport]);
1173 r.appendf("Discard Render Target Support : %s\n", gNY[fDiscardRenderTar getSupport]); 1175 r.appendf("Discard Render Target Support : %s\n", gNY[fDiscardRenderTar getSupport]);
1174 r.appendf("Reuse Scratch Textures : %s\n", gNY[fReuseScratchText ures]); 1176 r.appendf("Reuse Scratch Textures : %s\n", gNY[fReuseScratchText ures]);
1175 r.appendf("Gpu Tracing Support : %s\n", gNY[fGpuTracingSuppor t]); 1177 r.appendf("Gpu Tracing Support : %s\n", gNY[fGpuTracingSuppor t]);
1176 r.appendf("Compressed Update Support : %s\n", gNY[fCompressedTexSub ImageSupport]); 1178 r.appendf("Compressed Update Support : %s\n", gNY[fCompressedTexSub ImageSupport]);
1177 r.appendf("Oversized Stencil Support : %s\n", gNY[fOversizedStencil Support]); 1179 r.appendf("Oversized Stencil Support : %s\n", gNY[fOversizedStencil Support]);
1180 r.appendf("Texture Barrier Support : %s\n", gNY[fTextureBarrierSu pport]);
1178 r.appendf("Draw Instead of Clear [workaround] : %s\n", gNY[fUseDrawInsteadOf Clear]); 1181 r.appendf("Draw Instead of Clear [workaround] : %s\n", gNY[fUseDrawInsteadOf Clear]);
1179 1182
1180 r.appendf("Max Texture Size : %d\n", fMaxTextureSize); 1183 r.appendf("Max Texture Size : %d\n", fMaxTextureSize);
1181 r.appendf("Max Render Target Size : %d\n", fMaxRenderTargetSize) ; 1184 r.appendf("Max Render Target Size : %d\n", fMaxRenderTargetSize) ;
1182 r.appendf("Max Sample Count : %d\n", fMaxSampleCount); 1185 r.appendf("Max Sample Count : %d\n", fMaxSampleCount);
1183 1186
1184 r.appendf("Map Buffer Support : %s\n", 1187 r.appendf("Map Buffer Support : %s\n",
1185 map_flags_to_string(fMapBufferFlags).c_str()); 1188 map_flags_to_string(fMapBufferFlags).c_str());
1186 1189
1187 static const char* kConfigNames[] = { 1190 static const char* kConfigNames[] = {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
1260 GrPipelineBuilder::AutoRestoreFragmentProcessors* a rfp, 1263 GrPipelineBuilder::AutoRestoreFragmentProcessors* a rfp,
1261 GrPipelineBuilder::AutoRestoreStencil* ars, 1264 GrPipelineBuilder::AutoRestoreStencil* ars,
1262 GrScissorState* scissorState, 1265 GrScissorState* scissorState,
1263 const SkRect* devBounds) { 1266 const SkRect* devBounds) {
1264 return fClipMaskManager.setupClipping(pipelineBuilder, 1267 return fClipMaskManager.setupClipping(pipelineBuilder,
1265 arfp, 1268 arfp,
1266 ars, 1269 ars,
1267 scissorState, 1270 scissorState,
1268 devBounds); 1271 devBounds);
1269 } 1272 }
OLDNEW
« no previous file with comments | « include/gpu/gl/GrGLInterface.h ('k') | src/gpu/GrDrawTargetCaps.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698