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

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

Issue 429343004: Stopped skipping tests in dm of SkPatch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Moved DRAW_PATCH DrawType to the last position 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.cpp » ('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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
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,
279 const SkPaint& paint) { 279 const SkPaint& paint) {
280 Iter iter(fList); 280 Iter iter(fList);
281 while (iter.next()) { 281 while (iter.next()) {
282 iter->drawVertices(vmode, vertexCount, vertices, texs, colors, xmode, 282 iter->drawVertices(vmode, vertexCount, vertices, texs, colors, xmode,
283 indices, indexCount, paint); 283 indices, indexCount, paint);
284 } 284 }
285 } 285 }
286 286
287 void SkNWayCanvas::drawPatch(const SkPatch& patch, const SkPaint& paint) {
288 Iter iter(fList);
289 while (iter.next()) {
290 iter->drawPatch(patch, paint);
291 }
292 }
293
287 void SkNWayCanvas::drawData(const void* data, size_t length) { 294 void SkNWayCanvas::drawData(const void* data, size_t length) {
288 Iter iter(fList); 295 Iter iter(fList);
289 while (iter.next()) { 296 while (iter.next()) {
290 iter->drawData(data, length); 297 iter->drawData(data, length);
291 } 298 }
292 } 299 }
293 300
294 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) { 301 SkDrawFilter* SkNWayCanvas::setDrawFilter(SkDrawFilter* filter) {
295 Iter iter(fList); 302 Iter iter(fList);
296 while (iter.next()) { 303 while (iter.next()) {
(...skipping 15 matching lines...) Expand all
312 iter->addComment(kywd, value); 319 iter->addComment(kywd, value);
313 } 320 }
314 } 321 }
315 322
316 void SkNWayCanvas::endCommentGroup() { 323 void SkNWayCanvas::endCommentGroup() {
317 Iter iter(fList); 324 Iter iter(fList);
318 while (iter.next()) { 325 while (iter.next()) {
319 iter->endCommentGroup(); 326 iter->endCommentGroup();
320 } 327 }
321 } 328 }
OLDNEW
« no previous file with comments | « src/utils/SkDumpCanvas.cpp ('k') | src/utils/SkPatchUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698