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

Side by Side Diff: src/core/SkRecordDraw.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/core/SkReadBuffer.cpp ('k') | src/core/SkRecorder.h » ('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 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkRecordDraw.h" 8 #include "SkRecordDraw.h"
9 9
10 void SkRecordDraw(const SkRecord& record, SkCanvas* canvas, SkDrawPictureCallbac k* callback) { 10 void SkRecordDraw(const SkRecord& record, SkCanvas* canvas, SkDrawPictureCallbac k* callback) {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 DRAW(DrawBitmap, drawBitmap(shallow_copy(r.bitmap), r.left, r.top, r.paint)); 57 DRAW(DrawBitmap, drawBitmap(shallow_copy(r.bitmap), r.left, r.top, r.paint));
58 DRAW(DrawBitmapMatrix, drawBitmapMatrix(shallow_copy(r.bitmap), r.matrix, r.pain t)); 58 DRAW(DrawBitmapMatrix, drawBitmapMatrix(shallow_copy(r.bitmap), r.matrix, r.pain t));
59 DRAW(DrawBitmapNine, drawBitmapNine(shallow_copy(r.bitmap), r.center, r.dst, r.p aint)); 59 DRAW(DrawBitmapNine, drawBitmapNine(shallow_copy(r.bitmap), r.center, r.dst, r.p aint));
60 DRAW(DrawBitmapRectToRect, 60 DRAW(DrawBitmapRectToRect,
61 drawBitmapRectToRect(shallow_copy(r.bitmap), r.src, r.dst, r.paint, r.fl ags)); 61 drawBitmapRectToRect(shallow_copy(r.bitmap), r.src, r.dst, r.paint, r.fl ags));
62 DRAW(DrawDRRect, drawDRRect(r.outer, r.inner, r.paint)); 62 DRAW(DrawDRRect, drawDRRect(r.outer, r.inner, r.paint));
63 DRAW(DrawOval, drawOval(r.oval, r.paint)); 63 DRAW(DrawOval, drawOval(r.oval, r.paint));
64 DRAW(DrawPaint, drawPaint(r.paint)); 64 DRAW(DrawPaint, drawPaint(r.paint));
65 DRAW(DrawPath, drawPath(r.path, r.paint)); 65 DRAW(DrawPath, drawPath(r.path, r.paint));
66 DRAW(DrawPatch, drawPatch(r.patch, r.paint));
66 DRAW(DrawPoints, drawPoints(r.mode, r.count, r.pts, r.paint)); 67 DRAW(DrawPoints, drawPoints(r.mode, r.count, r.pts, r.paint));
67 DRAW(DrawPosText, drawPosText(r.text, r.byteLength, r.pos, r.paint)); 68 DRAW(DrawPosText, drawPosText(r.text, r.byteLength, r.pos, r.paint));
68 DRAW(DrawPosTextH, drawPosTextH(r.text, r.byteLength, r.xpos, r.y, r.paint)); 69 DRAW(DrawPosTextH, drawPosTextH(r.text, r.byteLength, r.xpos, r.y, r.paint));
69 DRAW(DrawRRect, drawRRect(r.rrect, r.paint)); 70 DRAW(DrawRRect, drawRRect(r.rrect, r.paint));
70 DRAW(DrawRect, drawRect(r.rect, r.paint)); 71 DRAW(DrawRect, drawRect(r.rect, r.paint));
71 DRAW(DrawSprite, drawSprite(shallow_copy(r.bitmap), r.left, r.top, r.paint)); 72 DRAW(DrawSprite, drawSprite(shallow_copy(r.bitmap), r.left, r.top, r.paint));
72 DRAW(DrawText, drawText(r.text, r.byteLength, r.x, r.y, r.paint)); 73 DRAW(DrawText, drawText(r.text, r.byteLength, r.x, r.y, r.paint));
73 DRAW(DrawTextOnPath, drawTextOnPath(r.text, r.byteLength, r.path, r.matrix, r.pa int)); 74 DRAW(DrawTextOnPath, drawTextOnPath(r.text, r.byteLength, r.path, r.matrix, r.pa int));
74 DRAW(DrawVertices, drawVertices(r.vmode, r.vertexCount, r.vertices, r.texs, r.co lors, 75 DRAW(DrawVertices, drawVertices(r.vmode, r.vertexCount, r.vertices, r.texs, r.co lors,
75 r.xmode.get(), r.indices, r.indexCount, r.paint) ); 76 r.xmode.get(), r.indices, r.indexCount, r.paint) );
76 #undef DRAW 77 #undef DRAW
77 78
78 template <> void Draw::draw(const PairedPushCull& r) { this->draw(*r.base); } 79 template <> void Draw::draw(const PairedPushCull& r) { this->draw(*r.base); }
79 template <> void Draw::draw(const BoundedDrawPosTextH& r) { this->draw(*r.base); } 80 template <> void Draw::draw(const BoundedDrawPosTextH& r) { this->draw(*r.base); }
80 81
81 } // namespace SkRecords 82 } // namespace SkRecords
OLDNEW
« no previous file with comments | « src/core/SkReadBuffer.cpp ('k') | src/core/SkRecorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698