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

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

Issue 473633002: SkTextBlob (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Build warnings fix. 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/SkCanvas.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 #include "SkTSort.h" 9 #include "SkTSort.h"
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 DRAW(DrawPath, drawPath(r.path, r.paint)); 82 DRAW(DrawPath, drawPath(r.path, r.paint));
83 DRAW(DrawPatch, drawPatch(r.cubics, r.colors, r.texCoords, r.xmode.get(), r.pain t)); 83 DRAW(DrawPatch, drawPatch(r.cubics, r.colors, r.texCoords, r.xmode.get(), r.pain t));
84 DRAW(DrawPicture, drawPicture(r.picture, r.matrix, r.paint)); 84 DRAW(DrawPicture, drawPicture(r.picture, r.matrix, r.paint));
85 DRAW(DrawPoints, drawPoints(r.mode, r.count, r.pts, r.paint)); 85 DRAW(DrawPoints, drawPoints(r.mode, r.count, r.pts, r.paint));
86 DRAW(DrawPosText, drawPosText(r.text, r.byteLength, r.pos, r.paint)); 86 DRAW(DrawPosText, drawPosText(r.text, r.byteLength, r.pos, r.paint));
87 DRAW(DrawPosTextH, drawPosTextH(r.text, r.byteLength, r.xpos, r.y, r.paint)); 87 DRAW(DrawPosTextH, drawPosTextH(r.text, r.byteLength, r.xpos, r.y, r.paint));
88 DRAW(DrawRRect, drawRRect(r.rrect, r.paint)); 88 DRAW(DrawRRect, drawRRect(r.rrect, r.paint));
89 DRAW(DrawRect, drawRect(r.rect, r.paint)); 89 DRAW(DrawRect, drawRect(r.rect, r.paint));
90 DRAW(DrawSprite, drawSprite(shallow_copy(r.bitmap), r.left, r.top, r.paint)); 90 DRAW(DrawSprite, drawSprite(shallow_copy(r.bitmap), r.left, r.top, r.paint));
91 DRAW(DrawText, drawText(r.text, r.byteLength, r.x, r.y, r.paint)); 91 DRAW(DrawText, drawText(r.text, r.byteLength, r.x, r.y, r.paint));
92 DRAW(DrawTextBlob, drawTextBlob(r.blob, r.x, r.y, r.paint));
92 DRAW(DrawTextOnPath, drawTextOnPath(r.text, r.byteLength, r.path, r.matrix, r.pa int)); 93 DRAW(DrawTextOnPath, drawTextOnPath(r.text, r.byteLength, r.path, r.matrix, r.pa int));
93 DRAW(DrawVertices, drawVertices(r.vmode, r.vertexCount, r.vertices, r.texs, r.co lors, 94 DRAW(DrawVertices, drawVertices(r.vmode, r.vertexCount, r.vertices, r.texs, r.co lors,
94 r.xmode.get(), r.indices, r.indexCount, r.paint) ); 95 r.xmode.get(), r.indices, r.indexCount, r.paint) );
95 #undef DRAW 96 #undef DRAW
96 97
97 98
98 // This is an SkRecord visitor that fills an SkBBoxHierarchy. 99 // This is an SkRecord visitor that fills an SkBBoxHierarchy.
99 // 100 //
100 // The interesting part here is how to calculate bounds for ops which don't 101 // The interesting part here is how to calculate bounds for ops which don't
101 // have intrinsic bounds. What is the bounds of a Save or a Translate? 102 // have intrinsic bounds. What is the bounds of a Save or a Translate?
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 // Used to track the bounds of Save/Restore blocks and the control ops insid e them. 388 // Used to track the bounds of Save/Restore blocks and the control ops insid e them.
388 SkTDArray<SaveBounds> fSaveStack; 389 SkTDArray<SaveBounds> fSaveStack;
389 SkTDArray<unsigned> fControlIndices; 390 SkTDArray<unsigned> fControlIndices;
390 }; 391 };
391 392
392 } // namespace SkRecords 393 } // namespace SkRecords
393 394
394 void SkRecordFillBounds(const SkRecord& record, SkBBoxHierarchy* bbh) { 395 void SkRecordFillBounds(const SkRecord& record, SkBBoxHierarchy* bbh) {
395 SkRecords::FillBounds(record, bbh); 396 SkRecords::FillBounds(record, bbh);
396 } 397 }
OLDNEW
« no previous file with comments | « src/core/SkCanvas.cpp ('k') | src/core/SkRecorder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698