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

Unified Diff: src/gpu/GrInOrderDrawBuffer.h

Issue 705593002: Refactor DrawTarget and GPU to be independent (Closed) Base URL: https://skia.googlesource.com/skia.git@early_clip
Patch Set: rebase on master Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/GrInOrderDrawBuffer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrInOrderDrawBuffer.h
diff --git a/src/gpu/GrInOrderDrawBuffer.h b/src/gpu/GrInOrderDrawBuffer.h
index 9b4124ab8f341ad1015dead3170449b524907f39..e86a5288d4f80ad4e2a633e1b26be190c46f6892 100644
--- a/src/gpu/GrInOrderDrawBuffer.h
+++ b/src/gpu/GrInOrderDrawBuffer.h
@@ -110,7 +110,7 @@ private:
Cmd(uint8_t type) : fType(type) {}
virtual ~Cmd() {}
- virtual void execute(GrClipTarget*) = 0;
+ virtual void execute(GrGpu*) = 0;
uint8_t fType;
};
@@ -129,7 +129,7 @@ private:
const GrVertexBuffer* vertexBuffer() const { return fVertexBuffer.get(); }
const GrIndexBuffer* indexBuffer() const { return fIndexBuffer.get(); }
- virtual void execute(GrClipTarget*);
+ virtual void execute(GrGpu*);
DrawInfo fInfo;
ScissorState fScissorState;
@@ -144,7 +144,7 @@ private:
const GrPath* path() const { return fPath.get(); }
- virtual void execute(GrClipTarget*);
+ virtual void execute(GrGpu*);
ScissorState fScissorState;
GrStencilSettings fStencilSettings;
@@ -158,7 +158,7 @@ private:
const GrPath* path() const { return fPath.get(); }
- virtual void execute(GrClipTarget*);
+ virtual void execute(GrGpu*);
GrDeviceCoordTexture fDstCopy;
ScissorState fScissorState;
@@ -175,7 +175,7 @@ private:
uint32_t* indices() { return reinterpret_cast<uint32_t*>(CmdBuffer::GetDataForItem(this)); }
float* transforms() { return reinterpret_cast<float*>(&this->indices()[fCount]); }
- virtual void execute(GrClipTarget*);
+ virtual void execute(GrGpu*);
size_t fCount;
PathTransformType fTransformsType;
@@ -193,7 +193,7 @@ private:
GrRenderTarget* renderTarget() const { return fRenderTarget.get(); }
- virtual void execute(GrClipTarget*);
+ virtual void execute(GrGpu*);
SkIRect fRect;
GrColor fColor;
@@ -209,7 +209,7 @@ private:
GrRenderTarget* renderTarget() const { return fRenderTarget.get(); }
- virtual void execute(GrClipTarget*);
+ virtual void execute(GrGpu*);
SkIRect fRect;
bool fInsideClip;
@@ -224,7 +224,7 @@ private:
GrSurface* dst() const { return fDst.get(); }
GrSurface* src() const { return fSrc.get(); }
- virtual void execute(GrClipTarget*);
+ virtual void execute(GrGpu*);
SkIPoint fDstPoint;
SkIRect fSrcRect;
@@ -237,7 +237,7 @@ private:
struct SetState : public Cmd {
SetState(const GrDrawState& state) : Cmd(kSetState_Cmd), fState(state) {}
- virtual void execute(GrClipTarget*);
+ virtual void execute(GrGpu*);
GrDrawState fState;
};
@@ -308,7 +308,7 @@ private:
CmdBuffer fCmdBuffer;
GrDrawState* fLastState;
SkTArray<GrTraceMarkerSet, false> fGpuCmdMarkers;
- GrClipTarget* fDstGpu;
+ GrGpu* fDstGpu;
GrVertexBufferAllocPool& fVertexPool;
GrIndexBufferAllocPool& fIndexPool;
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/GrInOrderDrawBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698