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

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

Issue 791743003: Remove GP from drawstate, revision of invariant output for GP (Closed) Base URL: https://skia.googlesource.com/skia.git@color-to-gp
Patch Set: Created 6 years 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
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 GrOptDrawState_DEFINED 8 #ifndef GrOptDrawState_DEFINED
9 #define GrOptDrawState_DEFINED 9 #define GrOptDrawState_DEFINED
10 10
(...skipping 12 matching lines...) Expand all
23 /** 23 /**
24 * Class that holds an optimized version of a GrDrawState. It is meant to be an immutable class, 24 * Class that holds an optimized version of a GrDrawState. It is meant to be an immutable class,
25 * and contains all data needed to set the state for a gpu draw. 25 * and contains all data needed to set the state for a gpu draw.
26 */ 26 */
27 class GrOptDrawState { 27 class GrOptDrawState {
28 public: 28 public:
29 SK_DECLARE_INST_COUNT(GrOptDrawState) 29 SK_DECLARE_INST_COUNT(GrOptDrawState)
30 30
31 typedef GrClipMaskManager::ScissorState ScissorState; 31 typedef GrClipMaskManager::ScissorState ScissorState;
32 32
33 GrOptDrawState(const GrDrawState& drawState, GrColor, uint8_t coverage, cons t GrDrawTargetCaps&, 33 GrOptDrawState(const GrDrawState& drawState, const GrGeometryProcessor*, GrC olor,
34 const ScissorState&, const GrDeviceCoordTexture* dstCopy, GrG pu::DrawType); 34 uint8_t coverage, const GrDrawTargetCaps&, const ScissorState &,
35 const GrDeviceCoordTexture* dstCopy, GrGpu::DrawType);
35 36
36 bool operator== (const GrOptDrawState& that) const; 37 bool operator== (const GrOptDrawState& that) const;
37 bool operator!= (const GrOptDrawState& that) const { return !(*this == that) ; } 38 bool operator!= (const GrOptDrawState& that) const { return !(*this == that) ; }
38 39
39 /// @} 40 /// @}
40 41
41 /////////////////////////////////////////////////////////////////////////// 42 ///////////////////////////////////////////////////////////////////////////
42 /// @name Color 43 /// @name Color
43 //// 44 ////
44 45
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 242
242 // This function is equivalent to the offset into fFragmentStages where cove rage stages begin. 243 // This function is equivalent to the offset into fFragmentStages where cove rage stages begin.
243 int fNumColorStages; 244 int fNumColorStages;
244 245
245 GrProgramDesc fDesc; 246 GrProgramDesc fDesc;
246 247
247 typedef SkRefCnt INHERITED; 248 typedef SkRefCnt INHERITED;
248 }; 249 };
249 250
250 #endif 251 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698