Home
last modified time | relevance | path

Searched refs:GrDrawTarget (Results 1 – 20 of 20) sorted by relevance

/external/skia/gpu/src/
DGrDrawTarget.cpp28 return GrDrawTarget::StageTexCoordVertexLayoutBit(stage, N) | in stage_mask_recur()
32 int stage_mask_recur<GrDrawTarget::kNumStages>(int) { return 0; } in stage_mask_recur()
42 GrDrawTarget::StagePosAsTexCoordVertexLayoutBit(stage); in stage_mask()
49 return GrDrawTarget::StageTexCoordVertexLayoutBit(N, texCoordIdx) | in tex_coord_mask_recur()
53 int tex_coord_mask_recur<GrDrawTarget::kMaxTexCoords>(int) { return 0; } in tex_coord_mask_recur()
62 for (int s = 0; s < GrDrawTarget::kNumStages; ++s) { in check_layout()
73 size_t GrDrawTarget::VertexSize(GrVertexLayout vertexLayout) { in VertexSize()
92 int GrDrawTarget::VertexStageCoordOffset(int stage, GrVertexLayout vertexLayout) { in VertexStageCoordOffset()
116 int GrDrawTarget::VertexColorOffset(GrVertexLayout vertexLayout) { in VertexColorOffset()
135 int GrDrawTarget::VertexSizeAndOffsetsByIdx(GrVertexLayout vertexLayout, in VertexSizeAndOffsetsByIdx()
[all …]
DGrPathRenderer.cpp155 static inline bool single_pass_path(const GrDrawTarget& target, in single_pass_path()
177 bool GrDefaultPathRenderer::requiresStencilPass(const GrDrawTarget* target, in requiresStencilPass()
183 void GrDefaultPathRenderer::onDrawPath(GrDrawTarget* target, in onDrawPath()
184 GrDrawTarget::StageBitfield stages, in onDrawPath()
190 GrDrawTarget::AutoStateRestore asr(target); in onDrawPath()
193 GrAssert(GrDrawTarget::kBoth_DrawFace == target->getDrawFace()); in onDrawPath()
214 for (int s = 0; s < GrDrawTarget::kNumStages; ++s) { in onDrawPath()
216 layout |= GrDrawTarget::StagePosAsTexCoordVertexLayoutBit(s); in onDrawPath()
221 GrDrawTarget::AutoReleaseGeometry arg(target, layout, maxPts + 4, 0); in onDrawPath()
233 GrDrawTarget::DrawFace drawFace[3]; in onDrawPath()
[all …]
DGrGLProgram.h80 static int ColorAttributeIdx() { return 1 + GrDrawTarget::kMaxTexCoords; } in ColorAttributeIdx()
82 return 2 + GrDrawTarget::kMaxTexCoords; in ViewMatrixAttributeIdx()
85 return 5 + GrDrawTarget::kMaxTexCoords + 3 * stage; in TextureMatrixAttributeIdx()
158 StageDesc fStages[GrDrawTarget::kNumStages];
200 StageUniLocations fStages[GrDrawTarget::kNumStages];
206 for (int s = 0; s < GrDrawTarget::kNumStages; ++s) { in reset()
239 GrMatrix fTextureMatrices[GrDrawTarget::kNumStages];
241 int fTextureWidth[GrDrawTarget::kNumStages];
242 int fTextureHeight[GrDrawTarget::kNumStages];
243 GrScalar fRadial2CenterX1[GrDrawTarget::kNumStages];
[all …]
DGrContext.cpp123 layout |= GrDrawTarget::StageTexCoordVertexLayoutBit(i, i); in PaintStageVertexLayoutBits()
125 layout |= GrDrawTarget::StagePosAsTexCoordVertexLayoutBit(i); in PaintStageVertexLayoutBits()
241 GrDrawTarget::AutoStateRestore asr(fGpu); in createAndLockTexture()
248 fGpu->disableState(GrDrawTarget::kDither_StateBit | in createAndLockTexture()
249 GrDrawTarget::kClip_StateBit | in createAndLockTexture()
250 GrDrawTarget::kAntialias_StateBit); in createAndLockTexture()
266 GrDrawTarget::StageTexCoordVertexLayoutBit(0,0); in createAndLockTexture()
267 GrDrawTarget::AutoReleaseGeometry arg(fGpu, layout, 4, 0); in createAndLockTexture()
423 fGpu->enableState(GrDrawTarget::kClip_StateBit); in setClip()
457 bool GrContext::doOffscreenAA(GrDrawTarget* target, in doOffscreenAA()
[all …]
DGrTesselatedPathRenderer.cpp88 typedef GrTDArray<GrDrawTarget::Edge> EdgeArray;
112 GrDrawTarget::Edge edge(tangent.fX * scale, in computeEdgesAndOffsetVertices()
118 GrDrawTarget::Edge prev_edge = *edges->back(); in computeEdgesAndOffsetVertices()
120 GrDrawTarget::Edge edge = edges->at(i); in computeEdgesAndOffsetVertices()
128 void GrTesselatedPathRenderer::drawPath(GrDrawTarget* target, in drawPath()
129 GrDrawTarget::StageBitfield stages, in drawPath()
133 GrDrawTarget::AutoStateRestore asr(target); in drawPath()
135 GrAssert(GrDrawTarget::kBoth_DrawFace == target->getDrawFace()); in drawPath()
156 for (int s = 0; s < GrDrawTarget::kNumStages; ++s) { in drawPath()
158 layout |= GrDrawTarget::StagePosAsTexCoordVertexLayoutBit(s); in drawPath()
[all …]
DGrTextContext.cpp34 GrDrawTarget::AutoStateRestore asr(fDrawTarget); in flushGlyphs()
124 GrDrawTarget::kTextFormat_VertexLayoutBit | in GrTextContext()
125 GrDrawTarget::StageTexCoordVertexLayoutBit(kGlyphMaskStage, 0); in GrTextContext()
137 GrDrawTarget::StagePosAsTexCoordVertexLayoutBit(i); in GrTextContext()
DGrGLProgram.cpp412 GrStringBuilder texCoordAttrs[GrDrawTarget::kMaxTexCoords]; in genProgram()
413 for (int t = 0; t < GrDrawTarget::kMaxTexCoords; ++t) { in genProgram()
414 if (GrDrawTarget::VertexUsesTexCoordIdx(t, layout)) { in genProgram()
436 if (GrDrawTarget::StagePosAsTexCoordVertexLayoutBit(s) & in genProgram()
440 int tcIdx = GrDrawTarget::VertexTexCoordsForStage(s, layout); in genProgram()
533 for (int s = startStage; s < GrDrawTarget::kNumStages; ++s) { in genProgram()
542 if (GrDrawTarget::StagePosAsTexCoordVertexLayoutBit(s) & layout) { in genProgram()
545 int tcIdx = GrDrawTarget::VertexTexCoordsForStage(s, layout); in genProgram()
794 for (int t = 0; t < GrDrawTarget::kMaxTexCoords; ++t) { in bindOutputsAttribsAndLinkProgram()
808 for (int s = 0; s < GrDrawTarget::kNumStages; ++s) { in bindOutputsAttribsAndLinkProgram()
[all …]
DGrInOrderDrawBuffer.cpp57 void GrInOrderDrawBuffer::initializeDrawStateAndClip(const GrDrawTarget& target) { in initializeDrawStateAndClip()
343 void GrInOrderDrawBuffer::playback(GrDrawTarget* target) { in playback()
356 GrDrawTarget::AutoStateRestore asr(target); in playback()
357 GrDrawTarget::AutoClipRestore acr(target); in playback()
360 GrDrawTarget::AutoGeometrySrcRestore agsr(target); in playback()
DGrBufferAllocPool.cpp348 size_t vSize = GrDrawTarget::VertexSize(layout); in makeSpace()
371 GrDrawTarget::VertexSize(layout) * vertexCount); in appendVertices()
380 GrDrawTarget::VertexSize(layout); in preallocatedBufferVertices()
384 return currentBufferItems(GrDrawTarget::VertexSize(layout)); in currentBufferVertices()
Dgr_files.mk7 GrDrawTarget.cpp \
Dgr_unittests.cpp276 GrDrawTarget::VertexLayoutUnitTest(); in gr_run_unittests()
/external/skia/gpu/include/
DGrPathRenderer.h40 virtual bool canDrawPath(const GrDrawTarget* target, const SkPath& path,
57 virtual void drawPath(GrDrawTarget* target,
58 GrDrawTarget::StageBitfield stages,
81 virtual bool requiresStencilPass(const GrDrawTarget* target, in requiresStencilPass()
103 virtual void drawPathToStencil(GrDrawTarget* target, in drawPathToStencil()
114 virtual bool supportsAA(GrDrawTarget* target, in supportsAA()
139 virtual bool canDrawPath(const GrDrawTarget* target, in canDrawPath()
143 virtual void drawPath(GrDrawTarget* target,
144 GrDrawTarget::StageBitfield stages,
148 virtual bool requiresStencilPass(const GrDrawTarget* target,
[all …]
DGrTesselatedPathRenderer.h26 virtual void drawPath(GrDrawTarget* target,
27 GrDrawTarget::StageBitfield stages,
31 virtual bool canDrawPath(const GrDrawTarget* target,
35 virtual bool requiresStencilPass(const GrDrawTarget* target, in requiresStencilPass()
38 virtual void drawPathToStencil(GrDrawTarget* target,
42 virtual bool supportsAA(GrDrawTarget* target,
DGrDrawTarget.h36 class GrDrawTarget : public GrRefCnt {
200 GrDrawTarget();
482 friend class GrDrawTarget; member
511 void copyDrawState(const GrDrawTarget& srcTarget);
844 AutoStateRestore(GrDrawTarget* target);
852 void set(GrDrawTarget* target);
855 GrDrawTarget* fDrawTarget;
867 AutoViewMatrixRestore(GrDrawTarget* target) in AutoViewMatrixRestore()
872 void set(GrDrawTarget* target) { in set()
888 GrDrawTarget* fDrawTarget;
[all …]
DGrContext.h506 GrDrawTarget* getTextTarget(const GrPaint& paint);
538 void fillAARect(GrDrawTarget* target,
542 void strokeAARect(GrDrawTarget* target,
557 static void SetPaint(const GrPaint& paint, GrDrawTarget* target);
563 GrDrawTarget* prepareToDraw(const GrPaint& paint, DrawCategory drawType);
567 GrPathRenderer* getPathRenderer(const GrDrawTarget*, const GrPath&, GrPathFill);
571 bool doOffscreenAA(GrDrawTarget* target,
576 bool setupOffscreenAAPass1(GrDrawTarget* target,
583 void offscreenAAPass2(GrDrawTarget* target,
DGrContext_impl.h31 GrDrawTarget::SavedDrawState fSavedState;
43 GrDrawTarget::AutoReleaseGeometry geo; in drawCustomVertices()
45 GrDrawTarget* target = this->prepareToDraw(paint, kUnbuffered_DrawCategory); in drawCustomVertices()
54 layout |= GrDrawTarget::kColor_VertexLayoutBit; in drawCustomVertices()
65 int texOffsets[GrDrawTarget::kMaxTexCoords]; in drawCustomVertices()
67 int vsize = GrDrawTarget::VertexSizeAndOffsetsByIdx(layout, in drawCustomVertices()
DGrInOrderDrawBuffer.h41 class GrInOrderDrawBuffer : public GrDrawTarget {
62 void initializeDrawStateAndClip(const GrDrawTarget& target);
81 void playback(GrDrawTarget* target);
183 typedef GrDrawTarget INHERITED;
DGrTextContext.h29 class GrDrawTarget; variable
47 GrDrawTarget* fDrawTarget;
DGrGpu.h59 class GrGpu : public GrDrawTarget {
577 typedef GrDrawTarget INHERITED;
/external/skia/
DAndroid.mk283 gpu/src/GrDrawTarget.cpp \