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

Unified Diff: src/gpu/GrTargetCommands.h

Issue 1292623004: Remove Cmd in GrTargetCommands that is no longer needed with GrCopySurfaceBatch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 months 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 | « no previous file | src/gpu/GrTargetCommands.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrTargetCommands.h
diff --git a/src/gpu/GrTargetCommands.h b/src/gpu/GrTargetCommands.h
index 39199f37ae409b2ce4cead1dc775ff853e57ac96..96452e125bb5fdf6999ebaa062a5433ca7013219 100644
--- a/src/gpu/GrTargetCommands.h
+++ b/src/gpu/GrTargetCommands.h
@@ -31,10 +31,9 @@ public:
public:
enum CmdType {
kStencilPath_CmdType = 1,
- kCopySurface_CmdType = 2,
- kDrawPath_CmdType = 3,
- kDrawPaths_CmdType = 4,
- kDrawBatch_CmdType = 5,
+ kDrawPath_CmdType = 2,
+ kDrawPaths_CmdType = 3,
+ kDrawBatch_CmdType = 4,
};
Cmd(CmdType type)
@@ -176,26 +175,6 @@ private:
GrPendingIOResource<const GrPathRange, kRead_GrIOType> fPathRange;
};
- struct CopySurface : public Cmd {
- CopySurface(GrSurface* dst, GrSurface* src)
- : Cmd(kCopySurface_CmdType)
- , fDst(dst)
- , fSrc(src) {
- }
-
- GrSurface* dst() const { return fDst.get(); }
- GrSurface* src() const { return fSrc.get(); }
-
- void execute(GrBatchFlushState*) override;
-
- SkIPoint fDstPoint;
- SkIRect fSrcRect;
-
- private:
- GrPendingIOResource<GrSurface, kWrite_GrIOType> fDst;
- GrPendingIOResource<GrSurface, kRead_GrIOType> fSrc;
- };
-
struct DrawBatch : public Cmd {
DrawBatch(GrBatch* batch)
: Cmd(kDrawBatch_CmdType)
« no previous file with comments | « no previous file | src/gpu/GrTargetCommands.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698