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

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

Issue 1124373002: Implement Porter Duff XP with a blend table (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Use resource provider instead of gpu for tests 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/GrBlend.cpp ('k') | src/gpu/effects/GrPorterDuffXferProcessor.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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 fFloatPrecisions[s][p].fLogRangeLow, 66 fFloatPrecisions[s][p].fLogRangeLow,
67 fFloatPrecisions[s][p].fLogRangeHigh, 67 fFloatPrecisions[s][p].fLogRangeHigh,
68 fFloatPrecisions[s][p].fBits); 68 fFloatPrecisions[s][p].fBits);
69 } 69 }
70 } 70 }
71 } 71 }
72 72
73 return r; 73 return r;
74 } 74 }
75 75
76 void GrShaderCaps::applyOptionsOverrides(const GrContextOptions&) { 76 void GrShaderCaps::applyOptionsOverrides(const GrContextOptions& options) {
77 // Currently no overrides apply to shader caps. 77 fDualSourceBlendingSupport = fDualSourceBlendingSupport && !options.fSuppres sDualSourceBlending;
78 } 78 }
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;
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 SkASSERT(!fConfigTextureSupport[kUnknown_GrPixelConfig]); 212 SkASSERT(!fConfigTextureSupport[kUnknown_GrPixelConfig]);
213 213
214 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) { 214 for (size_t i = 1; i < SK_ARRAY_COUNT(kConfigNames); ++i) {
215 r.appendf("%s is uploadable to a texture: %s\n", 215 r.appendf("%s is uploadable to a texture: %s\n",
216 kConfigNames[i], 216 kConfigNames[i],
217 gNY[fConfigTextureSupport[i]]); 217 gNY[fConfigTextureSupport[i]]);
218 } 218 }
219 219
220 return r; 220 return r;
221 } 221 }
OLDNEW
« no previous file with comments | « src/gpu/GrBlend.cpp ('k') | src/gpu/effects/GrPorterDuffXferProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698