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

Side by Side Diff: src/utils/SkNWayCanvas.cpp

Issue 313613004: Alter SkCanvas::drawPicture (devirtualize, take const SkPicture, take pointer) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add staging entry point for Chromium and Android Created 6 years, 6 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
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 #include "SkNWayCanvas.h" 8 #include "SkNWayCanvas.h"
9 9
10 SkNWayCanvas::SkNWayCanvas(int width, int height) 10 SkNWayCanvas::SkNWayCanvas(int width, int height)
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 } 258 }
259 259
260 void SkNWayCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const S kPath& path, 260 void SkNWayCanvas::onDrawTextOnPath(const void* text, size_t byteLength, const S kPath& path,
261 const SkMatrix* matrix, const SkPaint& paint ) { 261 const SkMatrix* matrix, const SkPaint& paint ) {
262 Iter iter(fList); 262 Iter iter(fList);
263 while (iter.next()) { 263 while (iter.next()) {
264 iter->drawTextOnPath(text, byteLength, path, matrix, paint); 264 iter->drawTextOnPath(text, byteLength, path, matrix, paint);
265 } 265 }
266 } 266 }
267 267
268 void SkNWayCanvas::drawPicture(SkPicture& picture) { 268 void SkNWayCanvas::onDrawPicture(const SkPicture* picture) {
269 Iter iter(fList); 269 Iter iter(fList);
270 while (iter.next()) { 270 while (iter.next()) {
271 iter->drawPicture(picture); 271 iter->drawPicture(picture);
272 } 272 }
273 } 273 }
274 274
275 void SkNWayCanvas::drawVertices(VertexMode vmode, int vertexCount, 275 void SkNWayCanvas::drawVertices(VertexMode vmode, int vertexCount,
276 const SkPoint vertices[], const SkPoint texs[], 276 const SkPoint vertices[], const SkPoint texs[],
277 const SkColor colors[], SkXfermode* xmode, 277 const SkColor colors[], SkXfermode* xmode,
278 const uint16_t indices[], int indexCount, 278 const uint16_t indices[], int indexCount,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 iter->addComment(kywd, value); 312 iter->addComment(kywd, value);
313 } 313 }
314 } 314 }
315 315
316 void SkNWayCanvas::endCommentGroup() { 316 void SkNWayCanvas::endCommentGroup() {
317 Iter iter(fList); 317 Iter iter(fList);
318 while (iter.next()) { 318 while (iter.next()) {
319 iter->endCommentGroup(); 319 iter->endCommentGroup();
320 } 320 }
321 } 321 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698