OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 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 #include "SkPicturePlayback.h" | 8 #include "SkPicturePlayback.h" |
9 #include "SkPictureRecord.h" | 9 #include "SkPictureRecord.h" |
10 #include "SkTypeface.h" | 10 #include "SkTypeface.h" |
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
990 constY, paint); | 990 constY, paint); |
991 } | 991 } |
992 } break; | 992 } break; |
993 case DRAW_RECT: { | 993 case DRAW_RECT: { |
994 const SkPaint& paint = *getPaint(reader); | 994 const SkPaint& paint = *getPaint(reader); |
995 canvas.drawRect(reader.skipT<SkRect>(), paint); | 995 canvas.drawRect(reader.skipT<SkRect>(), paint); |
996 } break; | 996 } break; |
997 case DRAW_RRECT: { | 997 case DRAW_RRECT: { |
998 const SkPaint& paint = *getPaint(reader); | 998 const SkPaint& paint = *getPaint(reader); |
999 SkRRect rrect; | 999 SkRRect rrect; |
1000 canvas.drawRRect(*reader.readRRect(&rrect), paint); | 1000 reader.readRRect(&rrect); |
| 1001 canvas.drawRRect(rrect, paint); |
1001 } break; | 1002 } break; |
1002 case DRAW_SPRITE: { | 1003 case DRAW_SPRITE: { |
1003 const SkPaint* paint = getPaint(reader); | 1004 const SkPaint* paint = getPaint(reader); |
1004 const SkBitmap& bitmap = getBitmap(reader); | 1005 const SkBitmap& bitmap = getBitmap(reader); |
1005 int left = reader.readInt(); | 1006 int left = reader.readInt(); |
1006 int top = reader.readInt(); | 1007 int top = reader.readInt(); |
1007 canvas.drawSprite(bitmap, left, top, paint); | 1008 canvas.drawSprite(bitmap, left, top, paint); |
1008 } break; | 1009 } break; |
1009 case DRAW_TEXT: { | 1010 case DRAW_TEXT: { |
1010 const SkPaint& paint = *getPaint(reader); | 1011 const SkPaint& paint = *getPaint(reader); |
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1669 for (index = 0; index < fRegionCount; index++) | 1670 for (index = 0; index < fRegionCount; index++) |
1670 bufferPtr += snprintf(bufferPtr, DUMP_BUFFER_SIZE - (bufferPtr - pBuffer
), | 1671 bufferPtr += snprintf(bufferPtr, DUMP_BUFFER_SIZE - (bufferPtr - pBuffer
), |
1671 "region%p, ", &fRegions[index]); | 1672 "region%p, ", &fRegions[index]); |
1672 if (fRegionCount > 0) | 1673 if (fRegionCount > 0) |
1673 SkDebugf("%s0};\n", pBuffer); | 1674 SkDebugf("%s0};\n", pBuffer); |
1674 | 1675 |
1675 const_cast<SkPicturePlayback*>(this)->dumpStream(); | 1676 const_cast<SkPicturePlayback*>(this)->dumpStream(); |
1676 } | 1677 } |
1677 | 1678 |
1678 #endif | 1679 #endif |
OLD | NEW |