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

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

Issue 15821008: Make GrContext track the current matrix, render target, and clip directly rather than using GrDrawS… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: put back wideopen check Created 7 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 | Annotate | Revision Log
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 fCommon.fFlagBits = 0x0; 88 fCommon.fFlagBits = 0x0;
89 fCommon.fStencilSettings.setDisabled(); 89 fCommon.fStencilSettings.setDisabled();
90 fCommon.fFirstCoverageStage = kNumStages; 90 fCommon.fFirstCoverageStage = kNumStages;
91 fCommon.fCoverage = 0xffffffff; 91 fCommon.fCoverage = 0xffffffff;
92 fCommon.fColorFilterMode = SkXfermode::kDst_Mode; 92 fCommon.fColorFilterMode = SkXfermode::kDst_Mode;
93 fCommon.fColorFilterColor = 0x0; 93 fCommon.fColorFilterColor = 0x0;
94 fCommon.fDrawFace = kBoth_DrawFace; 94 fCommon.fDrawFace = kBoth_DrawFace;
95 } 95 }
96 96
97 /** 97 /**
98 * Initializes the GrDrawState based on a GrPaint. Note that GrDrawState 98 * Initializes the GrDrawState based on a GrPaint, view matrix and render ta rget. Note that
99 * encompasses more than GrPaint. Aspects of GrDrawState that have no 99 * GrDrawState encompasses more than GrPaint. Aspects of GrDrawState that ha ve no GrPaint
100 * GrPaint equivalents are not modified. GrPaint has fewer stages than 100 * equivalents are set to default values. GrPaint has fewer stages than GrDr awState. The extra
101 * GrDrawState. The extra GrDrawState stages are disabled. 101 * GrDrawState stages are disabled.
102 */ 102 */
103 void setFromPaint(const GrPaint& paint); 103 void setFromPaint(const GrPaint& , const SkMatrix& viewMatrix, GrRenderTarge t*);
104 104
105 /////////////////////////////////////////////////////////////////////////// 105 ///////////////////////////////////////////////////////////////////////////
106 /// @name Vertex Attributes 106 /// @name Vertex Attributes
107 //// 107 ////
108 108
109 enum { 109 enum {
110 kMaxVertexAttribCnt = kLast_GrVertexAttribBinding + 4, 110 kMaxVertexAttribCnt = kLast_GrVertexAttribBinding + 4,
111 }; 111 };
112 112
113 /** 113 /**
(...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after
1151 * @param count the number of attributes being set, limited to kMaxVer texAttribCnt. 1151 * @param count the number of attributes being set, limited to kMaxVer texAttribCnt.
1152 */ 1152 */
1153 void setVertexAttribs(const GrVertexAttrib attribs[], int count); 1153 void setVertexAttribs(const GrVertexAttrib attribs[], int count);
1154 1154
1155 typedef GrRefCnt INHERITED; 1155 typedef GrRefCnt INHERITED;
1156 }; 1156 };
1157 1157
1158 GR_MAKE_BITFIELD_OPS(GrDrawState::BlendOptFlags); 1158 GR_MAKE_BITFIELD_OPS(GrDrawState::BlendOptFlags);
1159 1159
1160 #endif 1160 #endif
OLDNEW
« src/gpu/GrContext.cpp ('K') | « src/gpu/GrContext.cpp ('k') | src/gpu/GrDrawState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698