diff options
author | derekf <derekf@osg.samsung.com> | 2015-01-26 12:59:06 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-26 12:59:06 -0800 |
commit | b041efe2a825ea94c0a3805f1f8ca635c6c69dce (patch) | |
tree | 446e5bfca2295b8917d2599a028a8c1e49b20bd1 /src | |
parent | b0cce2c1d37d4bf5b89da6c70062209ac4e0e643 (diff) |
Remove clear function from SkGPipe
Clear no longer exists. (It's now a drawPaint call)
Review URL: https://codereview.chromium.org/881563002
Diffstat (limited to 'src')
-rw-r--r-- | src/pipe/SkGPipePriv.h | 4 | ||||
-rw-r--r-- | src/pipe/SkGPipeRead.cpp | 10 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/pipe/SkGPipePriv.h b/src/pipe/SkGPipePriv.h index 447e7687c1..736930b652 100644 --- a/src/pipe/SkGPipePriv.h +++ b/src/pipe/SkGPipePriv.h @@ -42,7 +42,6 @@ enum DrawOps { kDrawBitmap_DrawOp, kDrawBitmapNine_DrawOp, kDrawBitmapRectToRect_DrawOp, - kDrawClear_DrawOp, kDrawDRRect_DrawOp, kDrawOval_DrawOp, kDrawPaint_DrawOp, @@ -134,9 +133,6 @@ enum { kSaveLayer_HasPaint_DrawOpFlag = 1 << 1, }; enum { - kClear_HasColor_DrawOpFlag = 1 << 0 -}; -enum { kDrawTextOnPath_HasMatrix_DrawOpFlag = 1 << 0 }; enum { diff --git a/src/pipe/SkGPipeRead.cpp b/src/pipe/SkGPipeRead.cpp index aa108e602e..7684b72049 100644 --- a/src/pipe/SkGPipeRead.cpp +++ b/src/pipe/SkGPipeRead.cpp @@ -345,15 +345,6 @@ static void restore_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, /////////////////////////////////////////////////////////////////////////////// -static void drawClear_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, - SkGPipeState* state) { - SkColor color = 0; - if (DrawOp_unpackFlags(op32) & kClear_HasColor_DrawOpFlag) { - color = reader->readU32(); - } - canvas->clear(color); -} - static void drawPaint_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, SkGPipeState* state) { if (state->shouldDraw()) { @@ -801,7 +792,6 @@ static const ReadProc gReadTable[] = { drawBitmap_rp, drawBitmapNine_rp, drawBitmapRect_rp, - drawClear_rp, drawDRRect_rp, drawOval_rp, drawPaint_rp, |