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

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

Issue 631183003: Revert of gl programs rewrite (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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/effects/SkColorFilters.cpp ('k') | src/gpu/GrDrawState.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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 fDrawFace = face; 677 fDrawFace = face;
678 } 678 }
679 679
680 /// @} 680 /// @}
681 681
682 /////////////////////////////////////////////////////////////////////////// 682 ///////////////////////////////////////////////////////////////////////////
683 /// @name Hints 683 /// @name Hints
684 /// Hints that when provided can enable optimizations. 684 /// Hints that when provided can enable optimizations.
685 //// 685 ////
686 686
687 enum Hints { 687 enum Hints { kVertexColorsAreOpaque_Hint = 0x1, };
688 kVertexColorsAreOpaque_Hint = 0x1,
689 kLast_Hint = kVertexColorsAreOpaque_Hint
690 };
691 688
692 void setHint(Hints hint, bool value) { fHints = value ? (fHints | hint) : (f Hints & ~hint); } 689 void setHint(Hints hint, bool value) { fHints = value ? (fHints | hint) : (f Hints & ~hint); }
693 690
694 bool vertexColorsAreOpaque() const { return kVertexColorsAreOpaque_Hint & fH ints; } 691 bool vertexColorsAreOpaque() const { return kVertexColorsAreOpaque_Hint & fH ints; }
695 692
696 /// @} 693 /// @}
697 694
698 /////////////////////////////////////////////////////////////////////////// 695 ///////////////////////////////////////////////////////////////////////////
699 696
700 /** Return type for CombineIfPossible. */ 697 /** Return type for CombineIfPossible. */
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 mutable uint32_t fCachedCapsID; 822 mutable uint32_t fCachedCapsID;
826 823
827 friend class GrOptDrawState; 824 friend class GrOptDrawState;
828 825
829 typedef SkRefCnt INHERITED; 826 typedef SkRefCnt INHERITED;
830 }; 827 };
831 828
832 GR_MAKE_BITFIELD_OPS(GrDrawState::BlendOptFlags); 829 GR_MAKE_BITFIELD_OPS(GrDrawState::BlendOptFlags);
833 830
834 #endif 831 #endif
OLDNEW
« no previous file with comments | « src/effects/SkColorFilters.cpp ('k') | src/gpu/GrDrawState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698