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

Unified Diff: src/pipe/SkGPipeRead.cpp

Issue 881563002: Remove clear function from SkGPipe (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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 | « src/pipe/SkGPipePriv.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pipe/SkGPipeRead.cpp
diff --git a/src/pipe/SkGPipeRead.cpp b/src/pipe/SkGPipeRead.cpp
index aa108e602eb152c9ac5d1c330306b14bbf302ac7..7684b7204992205e4739f33b7b90fe307024c616 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,
« no previous file with comments | « src/pipe/SkGPipePriv.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698