| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #include "SkDrawCommand.h" | 10 #include "SkDrawCommand.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 case DRAW_PAINT: return "Draw Paint"; | 47 case DRAW_PAINT: return "Draw Paint"; |
| 48 case DRAW_PATH: return "Draw Path"; | 48 case DRAW_PATH: return "Draw Path"; |
| 49 case DRAW_PICTURE: return "Draw Picture"; | 49 case DRAW_PICTURE: return "Draw Picture"; |
| 50 case DRAW_POINTS: return "Draw Points"; | 50 case DRAW_POINTS: return "Draw Points"; |
| 51 case DRAW_POS_TEXT: return "Draw Pos Text"; | 51 case DRAW_POS_TEXT: return "Draw Pos Text"; |
| 52 case DRAW_POS_TEXT_H: return "Draw Pos Text H"; | 52 case DRAW_POS_TEXT_H: return "Draw Pos Text H"; |
| 53 case DRAW_RECT: return "Draw Rect"; | 53 case DRAW_RECT: return "Draw Rect"; |
| 54 case DRAW_RRECT: return "Draw RRect"; | 54 case DRAW_RRECT: return "Draw RRect"; |
| 55 case DRAW_SPRITE: return "Draw Sprite"; | 55 case DRAW_SPRITE: return "Draw Sprite"; |
| 56 case DRAW_TEXT: return "Draw Text"; | 56 case DRAW_TEXT: return "Draw Text"; |
| 57 case DRAW_TEXT_BLOB: return "Draw Text Blob"; |
| 57 case DRAW_TEXT_ON_PATH: return "Draw Text On Path"; | 58 case DRAW_TEXT_ON_PATH: return "Draw Text On Path"; |
| 58 case DRAW_VERTICES: return "Draw Vertices"; | 59 case DRAW_VERTICES: return "Draw Vertices"; |
| 59 case RESTORE: return "Restore"; | 60 case RESTORE: return "Restore"; |
| 60 case ROTATE: return "Rotate"; | 61 case ROTATE: return "Rotate"; |
| 61 case SAVE: return "Save"; | 62 case SAVE: return "Save"; |
| 62 case SAVE_LAYER: return "Save Layer"; | 63 case SAVE_LAYER: return "Save Layer"; |
| 63 case SCALE: return "Scale"; | 64 case SCALE: return "Scale"; |
| 64 case SET_MATRIX: return "Set Matrix"; | 65 case SET_MATRIX: return "Set Matrix"; |
| 65 case SKEW: return "Skew"; | 66 case SKEW: return "Skew"; |
| 66 case TRANSLATE: return "Translate"; | 67 case TRANSLATE: return "Translate"; |
| (...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1001 p.setColor(SK_ColorCYAN); | 1002 p.setColor(SK_ColorCYAN); |
| 1002 p.setStyle(SkPaint::kStroke_Style); | 1003 p.setStyle(SkPaint::kStroke_Style); |
| 1003 canvas->drawRect(fCullRect, p); | 1004 canvas->drawRect(fCullRect, p); |
| 1004 } | 1005 } |
| 1005 | 1006 |
| 1006 SkPopCullCommand::SkPopCullCommand() : INHERITED(POP_CULL) { } | 1007 SkPopCullCommand::SkPopCullCommand() : INHERITED(POP_CULL) { } |
| 1007 | 1008 |
| 1008 void SkPopCullCommand::execute(SkCanvas* canvas) { | 1009 void SkPopCullCommand::execute(SkCanvas* canvas) { |
| 1009 canvas->popCull(); | 1010 canvas->popCull(); |
| 1010 } | 1011 } |
| OLD | NEW |