aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/GrGpu.h')
-rw-r--r--src/gpu/GrGpu.h46
1 files changed, 21 insertions, 25 deletions
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
index af3502add7..5279ce8b39 100644
--- a/src/gpu/GrGpu.h
+++ b/src/gpu/GrGpu.h
@@ -412,6 +412,24 @@ public:
*/
void setIndexSourceToBuffer(const GrIndexBuffer* buffer);
+ virtual void draw(const GrDrawTarget::DrawInfo&,
+ const GrClipMaskManager::ScissorState&);
+ virtual void stencilPath(const GrPath*,
+ const GrClipMaskManager::ScissorState&,
+ const GrStencilSettings&);
+ virtual void drawPath(const GrPath*,
+ const GrClipMaskManager::ScissorState&,
+ const GrStencilSettings&,
+ const GrDeviceCoordTexture* dstCopy);
+ virtual void drawPaths(const GrPathRange*,
+ const uint32_t indices[],
+ int count,
+ const float transforms[],
+ GrDrawTarget::PathTransformType,
+ const GrClipMaskManager::ScissorState&,
+ const GrStencilSettings&,
+ const GrDeviceCoordTexture*);
+
protected:
DrawType PrimTypeToDrawType(GrPrimitiveType type) {
switch (type) {
@@ -484,8 +502,8 @@ private:
virtual GrIndexBuffer* onCreateIndexBuffer(size_t size, bool dynamic) = 0;
// overridden by backend-specific derived class to perform the clear.
- virtual void onGpuClear(GrRenderTarget*, const SkIRect* rect, GrColor color,
- bool canIgnoreRect) = 0;
+ virtual void onClear(GrRenderTarget*, const SkIRect* rect, GrColor color,
+ bool canIgnoreRect) = 0;
// Overridden by backend specific classes to perform a clear of the stencil clip bits. This is
@@ -495,7 +513,7 @@ private:
bool insideClip) = 0;
// overridden by backend-specific derived class to perform the draw call.
- virtual void onGpuDraw(const GrDrawTarget::DrawInfo&) = 0;
+ virtual void onDraw(const GrDrawTarget::DrawInfo&) = 0;
// overridden by backend-specific derived class to perform the read pixels.
virtual bool onReadPixels(GrRenderTarget* target,
@@ -535,25 +553,6 @@ private:
// Given a rt, find or create a stencil buffer and attach it
bool attachStencilBufferToRenderTarget(GrRenderTarget* target);
- // GrDrawTarget overrides
- virtual void onDraw(const GrDrawTarget::DrawInfo&,
- const GrClipMaskManager::ScissorState&);
- virtual void onStencilPath(const GrPath*,
- const GrClipMaskManager::ScissorState&,
- const GrStencilSettings&);
- virtual void onDrawPath(const GrPath*,
- const GrClipMaskManager::ScissorState&,
- const GrStencilSettings&,
- const GrDeviceCoordTexture* dstCopy);
- virtual void onDrawPaths(const GrPathRange*,
- const uint32_t indices[],
- int count,
- const float transforms[],
- GrDrawTarget::PathTransformType,
- const GrClipMaskManager::ScissorState&,
- const GrStencilSettings&,
- const GrDeviceCoordTexture*);
-
virtual void didAddGpuTraceMarker() = 0;
virtual void didRemoveGpuTraceMarker() = 0;
@@ -583,9 +582,6 @@ private:
// The context owns us, not vice-versa, so this ptr is not ref'ed by Gpu.
GrContext* fContext;
- // TODO fix this
- friend class GrInOrderDrawBuffer;
-
typedef SkRefCnt INHERITED;
};