Searched refs:GrDrawState (Results 1 - 22 of 22) sorted by relevance

/external/skia/src/gpu/gl/
H A DGrGLProgram.h13 #include "../GrDrawState.h"
64 static int ColorAttributeIdx() { return 1 + GrDrawState::kMaxTexCoords; }
66 return 2 + GrDrawState::kMaxTexCoords;
68 static int EdgeAttributeIdx() { return 3 + GrDrawState::kMaxTexCoords; }
71 return 4 + GrDrawState::kMaxTexCoords;
74 return 7 + GrDrawState::kMaxTexCoords + 3 * stage;
211 GrDrawState::VertexEdgeType fVertexEdgeType;
216 StageDesc fStages[GrDrawState::kNumStages];
281 StageUniLocations fStages[GrDrawState::kNumStages];
290 for (int s = 0; s < GrDrawState
[all...]
H A DGrGpuGLShaders.cpp204 pdesc.fFirstCoverageStage = random_int(&random, GrDrawState::kNumStages);
222 pdesc.fVertexEdgeType = (GrDrawState::VertexEdgeType) random_int(&random, GrDrawState::kVertexEdgeTypeCnt);
224 pdesc.fVertexEdgeType = GrDrawState::kHairLine_EdgeType;
243 for (int s = 0; s < GrDrawState::kNumStages; ++s) {
248 int t = random_int(&random, GrDrawState::kMaxTexCoords);
447 const GrDrawState& drawState = this->getDrawState();
483 const GrDrawState& drawState = this->getDrawState();
605 GrDrawState::Edge edges[GrDrawState
[all...]
H A DGrGpuGL.cpp23 static const int SPARE_TEX_UNIT = GrDrawState::kNumStages;
230 GrAssert(maxTextureUnits > GrDrawState::kNumStages);
233 GrAssert(maxTextureUnits > GrDrawState::kNumStages);
412 fHWDrawState.setDrawFace(GrDrawState::kBoth_DrawFace);
442 for (int s = 0; s < GrDrawState::kNumStages; ++s) {
1218 const GrDrawState& drawState = this->getDrawState();
1252 const GrDrawState& drawState = this->getDrawState();
1283 fHWDrawState.disableState(GrDrawState::kNoColorWrites_StateBit);
1306 const GrDrawState& drawState = this->getDrawState();
1391 GrDrawState
[all...]
H A DGrGpuGL.h14 #include "../GrDrawState.h"
72 GrDrawState fHWDrawState;
84 GR_STATIC_ASSERT(8 * sizeof(int) >= GrDrawState::kNumStages);
H A DGrGLProgram.cpp493 if (GrDrawState::kHairLine_EdgeType == fProgramDesc.fVertexEdgeType) {
496 } else if (GrDrawState::kQuad_EdgeType == fProgramDesc.fVertexEdgeType) {
515 GrAssert(GrDrawState::kHairQuad_EdgeType == fProgramDesc.fVertexEdgeType);
746 GrStringBuilder texCoordAttrs[GrDrawState::kMaxTexCoords];
747 for (int t = 0; t < GrDrawState::kMaxTexCoords; ++t) {
879 for (int s = startStage; s < GrDrawState::kNumStages; ++s) {
1217 for (int t = 0; t < GrDrawState::kMaxTexCoords; ++t) {
1231 for (int s = 0; s < GrDrawState::kNumStages; ++s) {
1315 for (int s = 0; s < GrDrawState::kNumStages; ++s) {
1377 for (int s = 0; s < GrDrawState
[all...]
/external/skia/src/gpu/
H A DGrAAConvexPathRenderer.h25 GrDrawState::StageMask stageMask,
H A DGrDrawTarget.h16 #include "GrDrawState.h"
59 typedef GrDrawState::StageMask StageMask;
88 const GrDrawState& getDrawState() const { return fCurrDrawState; }
89 GrDrawState* drawState() { return &fCurrDrawState; }
143 SkTLazy<GrDrawState> fState;
178 * positions and may also contain up to GrDrawState::kMaxTexCoords sets
207 GrAssert(stage < GrDrawState::kNumStages);
208 GrAssert(texCoordIdx < GrDrawState::kMaxTexCoords);
209 return 1 << (stage + (texCoordIdx * GrDrawState::kNumStages));
213 static const int TEX_COORD_BIT_CNT = GrDrawState
[all...]
H A DGrDrawTarget.cpp32 for (int s = 0; s < GrDrawState::kNumStages; ++s) {
34 for (int t = 0; t < GrDrawState::kMaxTexCoords; ++t) {
39 for (int t = 0; t < GrDrawState::kMaxTexCoords; ++t) {
41 for (int s = 0; s < GrDrawState::kNumStages; ++s) {
51 GrVertexLayout stageTexCoordMasks[GrDrawState::kNumStages];
52 GrVertexLayout stageMasks[GrDrawState::kNumStages];
53 GrVertexLayout texCoordMasks[GrDrawState::kMaxTexCoords];
57 for (int s = 0; s < GrDrawState::kNumStages; ++s) {
61 GrPrintf("GR_STATIC_ASSERT(GrDrawState::kNumStages == GR_ARRAY_COUNT(gStageTexCoordMasks));\n\n");
63 for (int s = 0; s < GrDrawState
[all...]
H A DGrAAHairLinePathRenderer.h29 GrDrawState::StageMask stageMask,
41 GrDrawState::StageMask stageMask,
H A DGrTesselatedPathRenderer.h28 GrDrawState::StageMask stageMask,
H A DGrDefaultPathRenderer.h43 GrDrawState::StageMask stageMask,
50 GrDrawState::StageMask stageMask,
58 GrDrawState::StageMask stages,
H A DGrDrawState.h22 struct GrDrawState { struct
47 GR_STATIC_ASSERT(sizeof(StageMask)*8 >= GrDrawState::kNumStages);
49 GrDrawState() { function in struct:GrDrawState
53 GrDrawState(const GrDrawState& state) { function in struct:GrDrawState
62 // all GrDrawState members should default to something valid by the
403 AutoViewMatrixRestore(GrDrawState* ds, const GrMatrix& newMatrix) {
407 AutoViewMatrixRestore(GrDrawState* ds) {
414 void set(GrDrawState* ds, const GrMatrix& newMatrix) {
424 void set(GrDrawState* d
[all...]
H A DGrTesselatedPathRenderer.cpp12 #include "GrDrawState.h"
23 typedef GrTDArray<GrDrawState::Edge> GrEdgeArray;
33 static inline GrDrawState::Edge computeEdge(const GrPoint& p,
39 return GrDrawState::Edge(tangent.fX * scale,
170 const GrDrawState::Edge* edges() const { return fEdges; }
180 GrDrawState::Edge edge = computeEdge(p, q, 1.0f);
187 fEdges = new GrDrawState::Edge[count];
188 memset(fEdges, 0, count * sizeof(GrDrawState::Edge));
220 GrDrawState::Edge* fEdges;
265 static bool parallel(const GrDrawState
[all...]
H A DGrDefaultPathRenderer.cpp12 #include "GrDrawState.h"
189 GrDrawState::StageMask stageMask,
210 for (int s = 0; s < GrDrawState::kNumStages; ++s) {
342 GrDrawState::StageMask stageMask,
348 GrDrawState* drawState = target->drawState();
369 GrAssert(GrDrawState::kBoth_DrawFace == drawState->getDrawFace());
373 GrDrawState::DrawFace drawFace[3];
385 drawFace[0] = GrDrawState::kBoth_DrawFace;
394 drawFace[0] = GrDrawState::kBoth_DrawFace;
415 drawFace[0] = drawFace[1] = GrDrawState
[all...]
H A DGrPathRenderer.h100 GrDrawState::StageMask stageMask,
130 GrDrawState::StageMask stageMask,
H A DGrInOrderDrawBuffer.cpp82 GrDrawState* drawState = this->drawState();
96 GrDrawState::AutoViewMatrixRestore avmr(drawState, GrMatrix::I());
137 drawState->disableState(GrDrawState::kClip_StateBit);
181 drawState->enableState(GrDrawState::kClip_StateBit);
331 const GrDrawState& dstate = this->accessSavedDrawState(fStates[i]);
332 for (int s = 0; s < GrDrawState::kNumStages; ++s) {
592 const GrDrawState& old = this->accessSavedDrawState(fStates.back());
598 const GrDrawState& drawState = this->getDrawState();
599 for (int s = 0; s < GrDrawState::kNumStages; ++s) {
H A DGrContext.cpp345 GrDrawState* drawState = fGpu->drawState();
572 fGpu->drawState()->enableState(GrDrawState::kClip_StateBit);
598 GrDrawState* drawState = fGpu->drawState();
739 for (int s = 0; s < GrDrawState::kNumStages; ++s) {
909 const GrDrawState& drawState = target->getDrawState();
1012 GrDrawState::AutoViewMatrixRestore avmr;
1014 GrDrawState* drawState = target->drawState();
1030 GrDrawState* drawState = target->drawState();
1031 GrDrawState::AutoViewMatrixRestore avmr(drawState);
1067 GrDrawState* drawStat
[all...]
H A DGrAAHairLinePathRenderer.cpp12 #include "GrDrawState.h"
506 GrDrawState::StageMask stageMask,
509 const GrDrawState& drawState = target->getDrawState();
522 for (int s = 0; s < GrDrawState::kNumStages; ++s) {
595 GrDrawState::StageMask stageMask,
610 GrDrawState* drawState = target->drawState();
629 drawState->setVertexEdgeType(GrDrawState::kHairLine_EdgeType);
642 drawState->setVertexEdgeType(GrDrawState::kHairQuad_EdgeType);
H A DGrAAConvexPathRenderer.cpp12 #include "GrDrawState.h"
426 GrDrawState::StageMask stageMask,
433 GrDrawState* drawState = target->drawState();
451 for (int s = 0; s < GrDrawState::kNumStages; ++s) {
481 drawState->setVertexEdgeType(GrDrawState::kQuad_EdgeType);
H A DGrGpu.cpp188 GrDrawState::AutoRenderTargetRestore artr(this->drawState(), rt);
545 GrDrawState* drawState = this->drawState();
600 drawState->enableState(GrDrawState::kNoColorWrites_StateBit);
602 drawState->disableState(GrDrawState::kNoColorWrites_StateBit);
H A DGrGpu.h338 kFirstBit = (GrDrawState::kLastPublicStateBit << 1),
H A DGrTextContext.cpp28 GrDrawState* drawState = fDrawTarget->drawState();

Completed in 517 milliseconds