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

Side by Side Diff: src/pipe/SkGPipeRead.cpp

Issue 429343004: Stopped skipping tests in dm of SkPatch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Moved DRAW_PATCH DrawType to the last position Created 6 years, 4 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 unified diff | Download patch
« no previous file with comments | « src/pipe/SkGPipePriv.h ('k') | src/pipe/SkGPipeWrite.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 static void drawDRRect_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, 397 static void drawDRRect_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32,
398 SkGPipeState* state) { 398 SkGPipeState* state) {
399 SkRRect outer, inner; 399 SkRRect outer, inner;
400 reader->readRRect(&outer); 400 reader->readRRect(&outer);
401 reader->readRRect(&inner); 401 reader->readRRect(&inner);
402 if (state->shouldDraw()) { 402 if (state->shouldDraw()) {
403 canvas->drawDRRect(outer, inner, state->paint()); 403 canvas->drawDRRect(outer, inner, state->paint());
404 } 404 }
405 } 405 }
406 406
407 static void drawPatch_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32,
408 SkGPipeState* state) {
409 SkPatch patch;
410 reader->readPatch(&patch);
411 if (state->shouldDraw()) {
412 canvas->drawPatch(patch, state->paint());
413 }
414 }
415
407 static void drawPath_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, 416 static void drawPath_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32,
408 SkGPipeState* state) { 417 SkGPipeState* state) {
409 SkPath path; 418 SkPath path;
410 reader->readPath(&path); 419 reader->readPath(&path);
411 if (state->shouldDraw()) { 420 if (state->shouldDraw()) {
412 canvas->drawPath(path, state->paint()); 421 canvas->drawPath(path, state->paint());
413 } 422 }
414 } 423 }
415 424
416 static void drawVertices_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32, 425 static void drawVertices_rp(SkCanvas* canvas, SkReader32* reader, uint32_t op32,
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 concat_rp, 777 concat_rp,
769 drawBitmap_rp, 778 drawBitmap_rp,
770 drawBitmapMatrix_rp, 779 drawBitmapMatrix_rp,
771 drawBitmapNine_rp, 780 drawBitmapNine_rp,
772 drawBitmapRect_rp, 781 drawBitmapRect_rp,
773 drawClear_rp, 782 drawClear_rp,
774 drawData_rp, 783 drawData_rp,
775 drawDRRect_rp, 784 drawDRRect_rp,
776 drawOval_rp, 785 drawOval_rp,
777 drawPaint_rp, 786 drawPaint_rp,
787 drawPatch_rp,
778 drawPath_rp, 788 drawPath_rp,
779 drawPicture_rp, 789 drawPicture_rp,
780 drawPoints_rp, 790 drawPoints_rp,
781 drawPosText_rp, 791 drawPosText_rp,
782 drawPosTextH_rp, 792 drawPosTextH_rp,
783 drawRect_rp, 793 drawRect_rp,
784 drawRRect_rp, 794 drawRRect_rp,
785 drawSprite_rp, 795 drawSprite_rp,
786 drawText_rp, 796 drawText_rp,
787 drawTextOnPath_rp, 797 drawTextOnPath_rp,
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 status = kReadAtom_Status; 907 status = kReadAtom_Status;
898 break; 908 break;
899 } 909 }
900 } 910 }
901 911
902 if (bytesRead) { 912 if (bytesRead) {
903 *bytesRead = reader.offset(); 913 *bytesRead = reader.offset();
904 } 914 }
905 return status; 915 return status;
906 } 916 }
OLDNEW
« no previous file with comments | « src/pipe/SkGPipePriv.h ('k') | src/pipe/SkGPipeWrite.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698