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

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

Issue 1317443004: Calculate pixel config and stencil fmt pairs once per pixel config. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Unused variable Created 5 years, 3 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/gl/GrGLCaps.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 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 fFullClearIsFree = false; 95 fFullClearIsFree = false;
96 fMustClearUploadedBufferData = false; 96 fMustClearUploadedBufferData = false;
97 97
98 fUseDrawInsteadOfClear = false; 98 fUseDrawInsteadOfClear = false;
99 99
100 fBlendEquationSupport = kBasic_BlendEquationSupport; 100 fBlendEquationSupport = kBasic_BlendEquationSupport;
101 fAdvBlendEqBlacklist = 0; 101 fAdvBlendEqBlacklist = 0;
102 102
103 fMapBufferFlags = kNone_MapFlags; 103 fMapBufferFlags = kNone_MapFlags;
104 104
105 fMaxRenderTargetSize = 0; 105 fMaxRenderTargetSize = 1;
106 fMaxTextureSize = 0; 106 fMaxTextureSize = 1;
107 fMinTextureSize = 0; 107 fMinTextureSize = 1;
108 fMaxSampleCount = 0; 108 fMaxSampleCount = 0;
109 109
110 memset(fConfigRenderSupport, 0, sizeof(fConfigRenderSupport)); 110 memset(fConfigRenderSupport, 0, sizeof(fConfigRenderSupport));
111 memset(fConfigTextureSupport, 0, sizeof(fConfigTextureSupport)); 111 memset(fConfigTextureSupport, 0, sizeof(fConfigTextureSupport));
112 112
113 fSupressPrints = options.fSuppressPrints; 113 fSupressPrints = options.fSuppressPrints;
114 fDrawPathMasksToCompressedTextureSupport = options.fDrawPathToCompressedText ure; 114 fDrawPathMasksToCompressedTextureSupport = options.fDrawPathToCompressedText ure;
115 fGeometryBufferMapThreshold = options.fGeometryBufferMapThreshold; 115 fGeometryBufferMapThreshold = options.fGeometryBufferMapThreshold;
116 fUseDrawInsteadOfPartialRenderTargetWrite = options.fUseDrawInsteadOfPartial RenderTargetWrite; 116 fUseDrawInsteadOfPartialRenderTargetWrite = options.fUseDrawInsteadOfPartial RenderTargetWrite;
117 117
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 SkASSERT(!fConfigTextureSupport[kUnknown_GrPixelConfig]); 236 SkASSERT(!fConfigTextureSupport[kUnknown_GrPixelConfig]);
237 237
238 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { 238 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) {
239 r.appendf("%s is uploadable to a texture: %s\n", 239 r.appendf("%s is uploadable to a texture: %s\n",
240 kConfigNames[i], 240 kConfigNames[i],
241 gNY[fConfigTextureSupport[i]]); 241 gNY[fConfigTextureSupport[i]]);
242 } 242 }
243 243
244 return r; 244 return r;
245 } 245 }
OLDNEW
« no previous file with comments | « no previous file | src/gpu/gl/GrGLCaps.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698