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 | 8 |
9 | 9 |
10 #include "SkBitmapHeap.h" | 10 #include "SkBitmapHeap.h" |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 | 389 |
390 static void drawRRect_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, | 390 static void drawRRect_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, |
391 SkGPipeState* state) { | 391 SkGPipeState* state) { |
392 SkRRect rrect; | 392 SkRRect rrect; |
393 reader->readRRect(&rrect); | 393 reader->readRRect(&rrect); |
394 if (state->shouldDraw()) { | 394 if (state->shouldDraw()) { |
395 canvas->drawRRect(rrect, state->paint()); | 395 canvas->drawRRect(rrect, state->paint()); |
396 } | 396 } |
397 } | 397 } |
398 | 398 |
| 399 static void drawDRRect_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, |
| 400 SkGPipeState* state) { |
| 401 SkRRect outer, inner; |
| 402 reader->readRRect(&outer); |
| 403 reader->readRRect(&inner); |
| 404 if (state->shouldDraw()) { |
| 405 canvas->drawDRRect(outer, inner, state->paint()); |
| 406 } |
| 407 } |
| 408 |
399 static void drawPath_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, | 409 static void drawPath_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, |
400 SkGPipeState* state) { | 410 SkGPipeState* state) { |
401 SkPath path; | 411 SkPath path; |
402 reader->readPath(&path); | 412 reader->readPath(&path); |
403 if (state->shouldDraw()) { | 413 if (state->shouldDraw()) { |
404 canvas->drawPath(path, state->paint()); | 414 canvas->drawPath(path, state->paint()); |
405 } | 415 } |
406 } | 416 } |
407 | 417 |
408 static void drawVertices_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, | 418 static void drawVertices_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 clipRegion_rp, | 766 clipRegion_rp, |
757 clipRect_rp, | 767 clipRect_rp, |
758 clipRRect_rp, | 768 clipRRect_rp, |
759 concat_rp, | 769 concat_rp, |
760 drawBitmap_rp, | 770 drawBitmap_rp, |
761 drawBitmapMatrix_rp, | 771 drawBitmapMatrix_rp, |
762 drawBitmapNine_rp, | 772 drawBitmapNine_rp, |
763 drawBitmapRect_rp, | 773 drawBitmapRect_rp, |
764 drawClear_rp, | 774 drawClear_rp, |
765 drawData_rp, | 775 drawData_rp, |
| 776 drawDRRect_rp, |
766 drawOval_rp, | 777 drawOval_rp, |
767 drawPaint_rp, | 778 drawPaint_rp, |
768 drawPath_rp, | 779 drawPath_rp, |
769 drawPicture_rp, | 780 drawPicture_rp, |
770 drawPoints_rp, | 781 drawPoints_rp, |
771 drawPosText_rp, | 782 drawPosText_rp, |
772 drawPosTextH_rp, | 783 drawPosTextH_rp, |
773 drawRect_rp, | 784 drawRect_rp, |
774 drawRRect_rp, | 785 drawRRect_rp, |
775 drawSprite_rp, | 786 drawSprite_rp, |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
887 status = kReadAtom_Status; | 898 status = kReadAtom_Status; |
888 break; | 899 break; |
889 } | 900 } |
890 } | 901 } |
891 | 902 |
892 if (bytesRead) { | 903 if (bytesRead) { |
893 *bytesRead = reader.offset(); | 904 *bytesRead = reader.offset(); |
894 } | 905 } |
895 return status; | 906 return status; |
896 } | 907 } |
OLD | NEW |