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/utils/SkNWayCanvas.cpp

Issue 463493002: SkCanvas::drawPatch param SkPoint[12] (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 const SkColor colors[], SkXfermode* xmode, 278 const SkColor colors[], SkXfermode* xmode,
279 const uint16_t indices[], int indexCount, 279 const uint16_t indices[], int indexCount,
280 const SkPaint& paint) { 280 const SkPaint& paint) {
281 Iter iter(fList); 281 Iter iter(fList);
282 while (iter.next()) { 282 while (iter.next()) {
283 iter->drawVertices(vmode, vertexCount, vertices, texs, colors, xmode, 283 iter->drawVertices(vmode, vertexCount, vertices, texs, colors, xmode,
284 indices, indexCount, paint); 284 indices, indexCount, paint);
285 } 285 }
286 } 286 }
287 287
288 void SkNWayCanvas::drawPatch(const SkPatch& patch, const SkPaint& paint) { 288 void SkNWayCanvas::drawPatch(const SkPoint cubics[12], const SkColor colors[4],
289 const SkPoint texCoords[4], SkXfermode* xmode, cons t SkPaint& paint) {
290 if (NULL == cubics) {
291 return;
292 }
293
289 Iter iter(fList); 294 Iter iter(fList);
290 while (iter.next()) { 295 while (iter.next()) {
291 iter->drawPatch(patch, paint); 296 iter->drawPatch(cubics, colors, texCoords, xmode, paint);
292 } 297 }
293 } 298 }
294 299
295 void SkNWayCanvas::drawData(const void* data, size_t length) { 300 void SkNWayCanvas::drawData(const void* data, size_t length) {
296 Iter iter(fList); 301 Iter iter(fList);
297 while (iter.next()) { 302 while (iter.next()) {
298 iter->drawData(data, length); 303 iter->drawData(data, length);
299 } 304 }
300 } 305 }
301 306
(...skipping 18 matching lines...) Expand all
320 iter->addComment(kywd, value); 325 iter->addComment(kywd, value);
321 } 326 }
322 } 327 }
323 328
324 void SkNWayCanvas::endCommentGroup() { 329 void SkNWayCanvas::endCommentGroup() {
325 Iter iter(fList); 330 Iter iter(fList);
326 while (iter.next()) { 331 while (iter.next()) {
327 iter->endCommentGroup(); 332 iter->endCommentGroup();
328 } 333 }
329 } 334 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698