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

Side by Side Diff: src/core/SkRecordDraw.cpp

Issue 585523003: Simplify a little in SkRecords.h: (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: safe ref Created 6 years, 3 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 | « no previous file | src/core/SkRecords.h » ('j') | src/core/SkRecords.h » ('J')
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 #include "SkPatchUtils.h" 9 #include "SkPatchUtils.h"
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 DRAW(DrawBitmap, drawBitmap(shallow_copy(r.bitmap), r.left, r.top, r.paint)); 90 DRAW(DrawBitmap, drawBitmap(shallow_copy(r.bitmap), r.left, r.top, r.paint));
91 DRAW(DrawBitmapMatrix, drawBitmapMatrix(shallow_copy(r.bitmap), r.matrix, r.pain t)); 91 DRAW(DrawBitmapMatrix, drawBitmapMatrix(shallow_copy(r.bitmap), r.matrix, r.pain t));
92 DRAW(DrawBitmapNine, drawBitmapNine(shallow_copy(r.bitmap), r.center, r.dst, r.p aint)); 92 DRAW(DrawBitmapNine, drawBitmapNine(shallow_copy(r.bitmap), r.center, r.dst, r.p aint));
93 DRAW(DrawBitmapRectToRect, 93 DRAW(DrawBitmapRectToRect,
94 drawBitmapRectToRect(shallow_copy(r.bitmap), r.src, r.dst, r.paint, r.fl ags)); 94 drawBitmapRectToRect(shallow_copy(r.bitmap), r.src, r.dst, r.paint, r.fl ags));
95 DRAW(DrawDRRect, drawDRRect(r.outer, r.inner, r.paint)); 95 DRAW(DrawDRRect, drawDRRect(r.outer, r.inner, r.paint));
96 DRAW(DrawOval, drawOval(r.oval, r.paint)); 96 DRAW(DrawOval, drawOval(r.oval, r.paint));
97 DRAW(DrawPaint, drawPaint(r.paint)); 97 DRAW(DrawPaint, drawPaint(r.paint));
98 DRAW(DrawPath, drawPath(r.path, r.paint)); 98 DRAW(DrawPath, drawPath(r.path, r.paint));
99 DRAW(DrawPatch, drawPatch(r.cubics, r.colors, r.texCoords, r.xmode.get(), r.pain t)); 99 DRAW(DrawPatch, drawPatch(r.cubics, r.colors, r.texCoords, r.xmode, r.paint));
100 DRAW(DrawPicture, drawPicture(r.picture, r.matrix, r.paint)); 100 DRAW(DrawPicture, drawPicture(r.picture, r.matrix, r.paint));
101 DRAW(DrawPoints, drawPoints(r.mode, r.count, r.pts, r.paint)); 101 DRAW(DrawPoints, drawPoints(r.mode, r.count, r.pts, r.paint));
102 DRAW(DrawPosText, drawPosText(r.text, r.byteLength, r.pos, r.paint)); 102 DRAW(DrawPosText, drawPosText(r.text, r.byteLength, r.pos, r.paint));
103 DRAW(DrawPosTextH, drawPosTextH(r.text, r.byteLength, r.xpos, r.y, r.paint)); 103 DRAW(DrawPosTextH, drawPosTextH(r.text, r.byteLength, r.xpos, r.y, r.paint));
104 DRAW(DrawRRect, drawRRect(r.rrect, r.paint)); 104 DRAW(DrawRRect, drawRRect(r.rrect, r.paint));
105 DRAW(DrawRect, drawRect(r.rect, r.paint)); 105 DRAW(DrawRect, drawRect(r.rect, r.paint));
106 DRAW(DrawSprite, drawSprite(shallow_copy(r.bitmap), r.left, r.top, r.paint)); 106 DRAW(DrawSprite, drawSprite(shallow_copy(r.bitmap), r.left, r.top, r.paint));
107 DRAW(DrawText, drawText(r.text, r.byteLength, r.x, r.y, r.paint)); 107 DRAW(DrawText, drawText(r.text, r.byteLength, r.x, r.y, r.paint));
108 DRAW(DrawTextBlob, drawTextBlob(r.blob, r.x, r.y, r.paint)); 108 DRAW(DrawTextBlob, drawTextBlob(r.blob, r.x, r.y, r.paint));
109 DRAW(DrawTextOnPath, drawTextOnPath(r.text, r.byteLength, r.path, r.matrix, r.pa int)); 109 DRAW(DrawTextOnPath, drawTextOnPath(r.text, r.byteLength, r.path, r.matrix, r.pa int));
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 // Used to track the bounds of Save/Restore blocks and the control ops insid e them. 508 // Used to track the bounds of Save/Restore blocks and the control ops insid e them.
509 SkTDArray<SaveBounds> fSaveStack; 509 SkTDArray<SaveBounds> fSaveStack;
510 SkTDArray<unsigned> fControlIndices; 510 SkTDArray<unsigned> fControlIndices;
511 }; 511 };
512 512
513 } // namespace SkRecords 513 } // namespace SkRecords
514 514
515 void SkRecordFillBounds(const SkRecord& record, SkBBoxHierarchy* bbh) { 515 void SkRecordFillBounds(const SkRecord& record, SkBBoxHierarchy* bbh) {
516 SkRecords::FillBounds(record, bbh); 516 SkRecords::FillBounds(record, bbh);
517 } 517 }
OLDNEW
« no previous file with comments | « no previous file | src/core/SkRecords.h » ('j') | src/core/SkRecords.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698