/external/chromium_org/third_party/skia/src/gpu/ |
GrOptDrawState.h | 11 #include "GrDrawState.h" 15 * Subclass of GrRODrawState that holds an optimized version of a GrDrawState. Like it's parent 69 GrOptDrawState(const GrDrawState& drawState, BlendOptFlags blendOptFlags, 81 void copyEffectiveColorStages(const GrDrawState& ds); 89 void copyEffectiveCoverageStages(const GrDrawState& ds); 135 friend GrOptDrawState* GrDrawState::createOptState(const GrDrawTargetCaps&) const;
|
GrDrawState.h | 21 * state is stored in the parent class. GrDrawState contains methods for setting, adding to, etc. 25 class GrDrawState : public GrRODrawState { 27 SK_DECLARE_INST_COUNT(GrDrawState) 29 GrDrawState() : fCachedOptState(NULL) { 34 GrDrawState(const SkMatrix& initialViewMatrix) : fCachedOptState(NULL) { 42 GrDrawState(const GrDrawState& state) : INHERITED(), fCachedOptState(NULL) { 50 GrDrawState(const GrDrawState& state, const SkMatrix& preConcatMatrix); 52 virtual ~GrDrawState(); [all...] |
GrDrawState.cpp | 8 #include "GrDrawState.h" 15 GrOptDrawState* GrDrawState::createOptState(const GrDrawTargetCaps& caps) const { 36 GrDrawState::CombinedState GrDrawState::CombineIfPossible( 37 const GrDrawState& a, const GrDrawState& b, const GrDrawTargetCaps& caps) { 52 const GrDrawState* opaque; 53 const GrDrawState* nonOpaque; 75 GrDrawState::GrDrawState(const GrDrawState& state, const SkMatrix& preConcatMatrix [all...] |
GrDefaultPathRenderer.cpp | 11 #include "GrDrawState.h" 366 GrDrawState* drawState = target->drawState(); 369 SkASSERT(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::kBoth_DrawFace; 429 drawFace[0] = GrDrawState::kBoth_DrawFace; 439 drawFace[0] = GrDrawState::kCW_DrawFace; 440 drawFace[1] = GrDrawState::kCCW_DrawFace [all...] |
GrClipMaskManager.h | 13 #include "GrDrawState.h" 53 bool setupClipping(const GrClipData* clipDataIn, GrDrawState::AutoRestoreEffects*, 115 GrDrawState::AutoRestoreEffects*,
|
GrClipMaskManager.cpp | 40 GrDrawState* drawState = gpu->drawState(); 111 GrDrawState::AutoRestoreEffects* are, 115 GrDrawState* drawState = fGpu->drawState(); 216 GrDrawState::AutoRestoreEffects* are, 226 GrDrawState* drawState = fGpu->drawState(); 359 void setup_boolean_blendcoeffs(GrDrawState* drawState, SkRegion::Op op) { 392 GrDrawState* drawState = fGpu->drawState(); 440 GrDrawState* drawState = fGpu->drawState(); 467 GrDrawState::AutoViewMatrixRestore avmr; 468 GrDrawState* drawState = fGpu->drawState() [all...] |
GrDrawTarget.h | 13 #include "GrDrawState.h" 78 void setDrawState(GrDrawState* drawState); 83 const GrDrawState& getDrawState() const { return *fDrawState; } 89 GrDrawState* drawState() { return fDrawState; } 143 * The size of each vertex is determined by querying the current GrDrawState. 166 * 0. Vertex size is queried from the current GrDrawState. 188 * current GrDrawState. 209 * queried from the current GrDrawState. 228 * from current GrDrawState. 520 * install a new GrDrawState object on the target (setDrawState) and restor [all...] |
GrInOrderDrawBuffer.cpp | 93 static void set_vertex_attributes(GrDrawState* drawState, bool hasLocalCoords, GrColor color) { 100 drawState->setHint(GrDrawState::kVertexColorsAreOpaque_Hint, true); 118 GrDrawState* drawState = this->drawState(); 136 GrDrawState::AutoViewMatrixRestore avmr; 222 const GrDrawState& drawState = this->getDrawState(); 287 fDrawState->enableState(GrDrawState::kClip_StateBit); 290 void set(GrDrawState* drawState) { 293 drawState->disableState(GrDrawState::kClip_StateBit); 297 GrDrawState* fDrawState; 303 const GrDrawState& drawState = this->getDrawState() [all...] |
GrPathRenderer.h | 27 * Derived classes can use stages GrPaint::kTotalStages through GrDrawState::kNumStages-1. The 57 * 1) kNoRestriction: This is the most general. The caller sets up the GrDrawState on the target 179 GrDrawState* drawState = target->drawState(); 188 drawState->enableState(GrDrawState::kNoColorWrites_StateBit);
|
GrSoftwarePathRenderer.cpp | 79 GrDrawState::AutoViewMatrixRestore avmr; 119 GrDrawState* drawState = target->drawState();
|
GrStencilAndCoverTextContext.h | 12 #include "GrDrawState.h" 72 GrDrawState::AutoRestoreEffects fStateRestore;
|
/external/skia/src/gpu/ |
GrDrawState.h | 27 class GrDrawState : public SkRefCnt { 29 SK_DECLARE_INST_COUNT(GrDrawState) 31 GrDrawState() { 36 GrDrawState(const SkMatrix& initialViewMatrix) { 44 GrDrawState(const GrDrawState& state) : INHERITED() { 52 GrDrawState(const GrDrawState& state, const SkMatrix& preConcatMatrix) { 65 virtual ~GrDrawState() { SkASSERT(0 == fBlockEffectRemovalCnt); } 75 * Initializes the GrDrawState based on a GrPaint, view matrix and render target. Note tha [all...] |
GrDrawState.cpp | 8 #include "GrDrawState.h" 11 bool GrDrawState::setIdentityViewMatrix() { 29 void GrDrawState::setFromPaint(const GrPaint& paint, const SkMatrix& vm, GrRenderTarget* rt) { 54 this->enableState(GrDrawState::kClip_StateBit); 57 this->setState(GrDrawState::kDither_StateBit, paint.isDither()); 58 this->setState(GrDrawState::kHWAntialias_StateBit, paint.isAntiAlias()); 71 SkASSERT(count <= GrDrawState::kMaxVertexAttribCnt); 87 size_t GrDrawState::getVertexSize() const { 93 void GrDrawState::setVertexAttribs(const GrVertexAttrib* attribs, int count) { 128 void GrDrawState::setDefaultVertexAttribs() [all...] |
GrDefaultPathRenderer.cpp | 11 #include "GrDrawState.h" 366 GrDrawState* drawState = target->drawState(); 369 SkASSERT(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::kBoth_DrawFace; 429 drawFace[0] = GrDrawState::kBoth_DrawFace; 439 drawFace[0] = GrDrawState::kCW_DrawFace; 440 drawFace[1] = GrDrawState::kCCW_DrawFace [all...] |
GrClipMaskManager.h | 13 #include "GrDrawState.h" 53 bool setupClipping(const GrClipData* clipDataIn, GrDrawState::AutoRestoreEffects*, 111 GrDrawState::AutoRestoreEffects*,
|
GrClipMaskManager.cpp | 40 GrDrawState* drawState = gpu->drawState(); 111 GrDrawState::AutoRestoreEffects* are, 115 GrDrawState* drawState = fGpu->drawState(); 214 GrDrawState::AutoRestoreEffects* are, 224 GrDrawState* drawState = fGpu->drawState(); 357 void setup_boolean_blendcoeffs(GrDrawState* drawState, SkRegion::Op op) { 390 GrDrawState* drawState = fGpu->drawState(); 439 GrDrawState* drawState = fGpu->drawState(); 466 GrDrawState::AutoViewMatrixRestore avmr; 467 GrDrawState* drawState = fGpu->drawState() [all...] |
GrDrawTarget.h | 13 #include "GrDrawState.h" 73 void setDrawState(GrDrawState* drawState); 78 const GrDrawState& getDrawState() const { return *fDrawState; } 84 GrDrawState* drawState() { return fDrawState; } 97 * specified either by enabling a coverage stage on the GrDrawState or 100 * layout, the current configuration of the target's GrDrawState is as 163 * The size of each vertex is determined by querying the current GrDrawState. 186 * 0. Vertex size is queried from the current GrDrawState. 208 * current GrDrawState. 229 * queried from the current GrDrawState [all...] |
GrPathRenderer.h | 27 * Derived classes can use stages GrPaint::kTotalStages through GrDrawState::kNumStages-1. The 57 * 1) kNoRestriction: This is the most general. The caller sets up the GrDrawState on the target 179 GrDrawState* drawState = target->drawState(); 188 drawState->enableState(GrDrawState::kNoColorWrites_StateBit);
|
GrSoftwarePathRenderer.cpp | 85 GrDrawState::AutoViewMatrixRestore avmr; 125 GrDrawState* drawState = target->drawState();
|
/external/chromium_org/third_party/skia/experimental/AndroidPathRenderer/ |
GrAndroidPathRenderer.cpp | 40 GrDrawState* drawState = target->drawState(); 48 drawState->setAttribIndex(GrDrawState::kPosition_AttribIndex, 0); 49 drawState->setAttribIndex(GrDrawState::kCoverage_AttribIndex, 1); 50 drawState->setAttribBindings(GrDrawState::kCoverage_AttribBindingsBit);
|
/external/skia/experimental/AndroidPathRenderer/ |
GrAndroidPathRenderer.cpp | 40 GrDrawState* drawState = target->drawState(); 48 drawState->setAttribIndex(GrDrawState::kPosition_AttribIndex, 0); 49 drawState->setAttribIndex(GrDrawState::kCoverage_AttribIndex, 1); 50 drawState->setAttribBindings(GrDrawState::kCoverage_AttribBindingsBit);
|
/external/skia/src/gpu/gl/ |
GrGLProgramDesc.cpp | 39 void GrGLProgramDesc::Build(const GrDrawState& drawState, 41 GrDrawState::BlendOptFlags blendOpts, 53 SkASSERT(!(GrDrawState::kSkipDraw_BlendOptFlag & blendOpts)); 55 bool skipCoverage = SkToBool(blendOpts & GrDrawState::kEmitTransBlack_BlendOptFlag); 57 bool skipColor = SkToBool(blendOpts & (GrDrawState::kEmitTransBlack_BlendOptFlag | 58 GrDrawState::kEmitCoverage_BlendOptFlag)); 92 bool colorIsTransBlack = SkToBool(blendOpts & GrDrawState::kEmitTransBlack_BlendOptFlag); 93 bool colorIsSolidWhite = (blendOpts & GrDrawState::kEmitCoverage_BlendOptFlag) || 203 SkASSERT(availableAttributeIndex < GrDrawState::kMaxVertexAttribCnt); 213 SkASSERT(availableAttributeIndex < GrDrawState::kMaxVertexAttribCnt) [all...] |
GrGLProgram.h | 12 #include "GrDrawState.h" 89 * The GrDrawState's view matrix along with the aspects of the render target determine the 158 void setData(GrDrawState::BlendOptFlags, 177 void setColor(const GrDrawState&, GrColor color, SharedGLState*); 181 void setCoverage(const GrDrawState&, GrColor coverage, SharedGLState*); 184 void setMatrixAndRenderTargetHeight(const GrDrawState&);
|
GrGLProgram.cpp | 96 void GrGLProgram::setData(GrDrawState::BlendOptFlags blendOpts, 101 const GrDrawState& drawState = fGpu->getDrawState(); 105 if (blendOpts & GrDrawState::kEmitTransBlack_BlendOptFlag) { 108 } else if (blendOpts & GrDrawState::kEmitCoverage_BlendOptFlag) { 153 void GrGLProgram::setColor(const GrDrawState& drawState, 193 void GrGLProgram::setCoverage(const GrDrawState& drawState, 232 void GrGLProgram::setMatrixAndRenderTargetHeight(const GrDrawState& drawState) {
|
/external/skia/tests/ |
GLProgramsTest.cpp | 49 } while (GrDrawState::kMaxVertexAttribCnt <= currAttribIndex && 58 } while (GrDrawState::kMaxVertexAttribCnt <= currAttribIndex && 68 bool useLocalCoords = random->nextBool() && currAttribIndex < GrDrawState::kMaxVertexAttribCnt; 179 if (currAttribIndex + numAttribs > GrDrawState::kMaxVertexAttribCnt) {
|