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

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: Removed GPU headers from GM 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/utils/SkDumpCanvas.cpp ('k') | src/utils/SkPatchUtils.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 /* 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::onDrawPatch(const SkPoint cubics[12], const SkColor colors[4] ,
289 const SkPoint texCoords[4], SkXfermode* xmode,
290 const SkPaint& paint) {
289 Iter iter(fList); 291 Iter iter(fList);
290 while (iter.next()) { 292 while (iter.next()) {
291 iter->drawPatch(patch, paint); 293 iter->drawPatch(cubics, colors, texCoords, xmode, paint);
292 } 294 }
293 } 295 }
294 296
295 void SkNWayCanvas::drawData(const void* data, size_t length) { 297 void SkNWayCanvas::drawData(const void* data, size_t length) {
296 Iter iter(fList); 298 Iter iter(fList);
297 while (iter.next()) { 299 while (iter.next()) {
298 iter->drawData(data, length); 300 iter->drawData(data, length);
299 } 301 }
300 } 302 }
301 303
(...skipping 18 matching lines...) Expand all
320 iter->addComment(kywd, value); 322 iter->addComment(kywd, value);
321 } 323 }
322 } 324 }
323 325
324 void SkNWayCanvas::endCommentGroup() { 326 void SkNWayCanvas::endCommentGroup() {
325 Iter iter(fList); 327 Iter iter(fList);
326 while (iter.next()) { 328 while (iter.next()) {
327 iter->endCommentGroup(); 329 iter->endCommentGroup();
328 } 330 }
329 } 331 }
OLDNEW
« no previous file with comments | « src/utils/SkDumpCanvas.cpp ('k') | src/utils/SkPatchUtils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698