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

Side by Side Diff: include/gpu/GrInvariantOutput.h

Issue 1316513002: Change SkShader;asFragmentProcessor signature to no longer take skpaint\grcolor* (Closed) Base URL: https://skia.googlesource.com/skia.git@things
Patch Set: Address comments, fix roll(?) 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 | « include/gpu/GrFragmentProcessor.h ('k') | include/gpu/GrProcessorUnitTest.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 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrInvariantOutput_DEFINED 8 #ifndef GrInvariantOutput_DEFINED
9 #define GrInvariantOutput_DEFINED 9 #define GrInvariantOutput_DEFINED
10 10
(...skipping 11 matching lines...) Expand all
22 fValidFlags = kRGBA_GrColorComponentFlags; 22 fValidFlags = kRGBA_GrColorComponentFlags;
23 fIsSingleComponent = false; 23 fIsSingleComponent = false;
24 } 24 }
25 25
26 void setUnknownFourComponents() { 26 void setUnknownFourComponents() {
27 fValidFlags = 0; 27 fValidFlags = 0;
28 fIsSingleComponent = false; 28 fIsSingleComponent = false;
29 } 29 }
30 30
31 void setUnknownOpaqueFourComponents() { 31 void setUnknownOpaqueFourComponents() {
32 fColor = 0xff << GrColor_SHIFT_A; 32 fColor = 0xffU << GrColor_SHIFT_A;
33 fValidFlags = kA_GrColorComponentFlag; 33 fValidFlags = kA_GrColorComponentFlag;
34 fIsSingleComponent = false; 34 fIsSingleComponent = false;
35 } 35 }
36 36
37 void setKnownSingleComponent(uint8_t alpha) { 37 void setKnownSingleComponent(uint8_t alpha) {
38 fColor = GrColorPackRGBA(alpha, alpha, alpha, alpha); 38 fColor = GrColorPackRGBA(alpha, alpha, alpha, alpha);
39 fValidFlags = kRGBA_GrColorComponentFlags; 39 fValidFlags = kRGBA_GrColorComponentFlags;
40 fIsSingleComponent = true; 40 fIsSingleComponent = true;
41 } 41 }
42 42
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 uint32_t fValidFlags; 325 uint32_t fValidFlags;
326 bool fIsSingleComponent; 326 bool fIsSingleComponent;
327 bool fNonMulStageFound; 327 bool fNonMulStageFound;
328 bool fWillUseInputColor; 328 bool fWillUseInputColor;
329 bool fIsLCDCoverage; // Temorary data member until texture pixel configs are updated 329 bool fIsLCDCoverage; // Temorary data member until texture pixel configs are updated
330 330
331 }; 331 };
332 332
333 #endif 333 #endif
334 334
OLDNEW
« no previous file with comments | « include/gpu/GrFragmentProcessor.h ('k') | include/gpu/GrProcessorUnitTest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698