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

Side by Side Diff: src/gpu/GrDrawState.h

Issue 726693002: Use DrawStates ProcOptInfo when creating the Optimized Draw State. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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/GrOptDrawState.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 * Copyright 2011 Google Inc. 2 * Copyright 2011 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 GrDrawState_DEFINED 8 #ifndef GrDrawState_DEFINED
9 #define GrDrawState_DEFINED 9 #define GrDrawState_DEFINED
10 10
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 * kIConstA_GrBlendCoeff 442 * kIConstA_GrBlendCoeff
443 * 443 *
444 * @param constant the constant to set 444 * @param constant the constant to set
445 */ 445 */
446 void setBlendConstant(GrColor constant) { 446 void setBlendConstant(GrColor constant) {
447 if (constant != fBlendConstant) { 447 if (constant != fBlendConstant) {
448 fBlendConstant = constant; 448 fBlendConstant = constant;
449 } 449 }
450 } 450 }
451 451
452 const GrProcOptInfo& colorProcInfo() const {
bsalomon 2014/11/13 22:04:57 puhpuhpuhpublic? Can this somehow only be exposed
egdaniel 2014/11/14 15:36:30 we already friend ODS for other reasons, so not an
453 this->calcColorInvariantOutput();
454 return fColorProcInfo;
455 }
456 const GrProcOptInfo& coverageProcInfo() const {
457 this->calcCoverageInvariantOutput();
458 return fCoverageProcInfo;
459 }
460
452 /// @} 461 /// @}
453 462
454 /////////////////////////////////////////////////////////////////////////// 463 ///////////////////////////////////////////////////////////////////////////
455 /// @name View Matrix 464 /// @name View Matrix
456 //// 465 ////
457 466
458 /** 467 /**
459 * Retrieves the current view matrix 468 * Retrieves the current view matrix
460 * @return the current view matrix. 469 * @return the current view matrix.
461 */ 470 */
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 mutable bool fCoverageProcInfoValid; 871 mutable bool fCoverageProcInfoValid;
863 872
864 friend class GrOptDrawState; 873 friend class GrOptDrawState;
865 874
866 typedef SkRefCnt INHERITED; 875 typedef SkRefCnt INHERITED;
867 }; 876 };
868 877
869 GR_MAKE_BITFIELD_OPS(GrDrawState::BlendOptFlags); 878 GR_MAKE_BITFIELD_OPS(GrDrawState::BlendOptFlags);
870 879
871 #endif 880 #endif
OLDNEW
« no previous file with comments | « no previous file | src/gpu/GrOptDrawState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698