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 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 if (state->shouldDraw()) { | 663 if (state->shouldDraw()) { |
664 canvas->drawData(data, size); | 664 canvas->drawData(data, size); |
665 } | 665 } |
666 } | 666 } |
667 | 667 |
668 static void drawPicture_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, | 668 static void drawPicture_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, |
669 SkGPipeState* state) { | 669 SkGPipeState* state) { |
670 UNIMPLEMENTED | 670 UNIMPLEMENTED |
671 } | 671 } |
672 | 672 |
| 673 static void drawTextBlob_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, |
| 674 SkGPipeState* state) { |
| 675 UNIMPLEMENTED |
| 676 } |
673 /////////////////////////////////////////////////////////////////////////////// | 677 /////////////////////////////////////////////////////////////////////////////// |
674 | 678 |
675 static void paintOp_rp(SkCanvas*, SkReader32* reader, uint32_t op32, | 679 static void paintOp_rp(SkCanvas*, SkReader32* reader, uint32_t op32, |
676 SkGPipeState* state) { | 680 SkGPipeState* state) { |
677 size_t offset = reader->offset(); | 681 size_t offset = reader->offset(); |
678 size_t stop = offset + PaintOp_unpackData(op32); | 682 size_t stop = offset + PaintOp_unpackData(op32); |
679 SkPaint* p = state->editPaint(); | 683 SkPaint* p = state->editPaint(); |
680 | 684 |
681 do { | 685 do { |
682 uint32_t p32 = reader->readU32(); | 686 uint32_t p32 = reader->readU32(); |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 drawPatch_rp, | 811 drawPatch_rp, |
808 drawPath_rp, | 812 drawPath_rp, |
809 drawPicture_rp, | 813 drawPicture_rp, |
810 drawPoints_rp, | 814 drawPoints_rp, |
811 drawPosText_rp, | 815 drawPosText_rp, |
812 drawPosTextH_rp, | 816 drawPosTextH_rp, |
813 drawRect_rp, | 817 drawRect_rp, |
814 drawRRect_rp, | 818 drawRRect_rp, |
815 drawSprite_rp, | 819 drawSprite_rp, |
816 drawText_rp, | 820 drawText_rp, |
| 821 drawTextBlob_rp, |
817 drawTextOnPath_rp, | 822 drawTextOnPath_rp, |
818 drawVertices_rp, | 823 drawVertices_rp, |
819 restore_rp, | 824 restore_rp, |
820 rotate_rp, | 825 rotate_rp, |
821 save_rp, | 826 save_rp, |
822 saveLayer_rp, | 827 saveLayer_rp, |
823 scale_rp, | 828 scale_rp, |
824 setMatrix_rp, | 829 setMatrix_rp, |
825 skew_rp, | 830 skew_rp, |
826 translate_rp, | 831 translate_rp, |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
927 status = kReadAtom_Status; | 932 status = kReadAtom_Status; |
928 break; | 933 break; |
929 } | 934 } |
930 } | 935 } |
931 | 936 |
932 if (bytesRead) { | 937 if (bytesRead) { |
933 *bytesRead = reader.offset(); | 938 *bytesRead = reader.offset(); |
934 } | 939 } |
935 return status; | 940 return status; |
936 } | 941 } |
OLD | NEW |