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

Side by Side Diff: skia/ext/benchmarking_canvas.cc

Issue 990373002: drawPicture calls OnDrawPicture calls drawPicture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/logging.h" 5 #include "base/logging.h"
6 #include "base/strings/stringprintf.h" 6 #include "base/strings/stringprintf.h"
7 #include "base/time/time.h" 7 #include "base/time/time.h"
8 #include "skia/ext/benchmarking_canvas.h" 8 #include "skia/ext/benchmarking_canvas.h"
9 #include "third_party/skia/include/core/SkColorFilter.h" 9 #include "third_party/skia/include/core/SkColorFilter.h"
10 #include "third_party/skia/include/core/SkImageFilter.h" 10 #include "third_party/skia/include/core/SkImageFilter.h"
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 617
618 void BenchmarkingCanvas::onDrawPicture(const SkPicture* picture, 618 void BenchmarkingCanvas::onDrawPicture(const SkPicture* picture,
619 const SkMatrix* matrix, 619 const SkMatrix* matrix,
620 const SkPaint* paint) { 620 const SkPaint* paint) {
621 DCHECK(picture); 621 DCHECK(picture);
622 AutoOp op(this, "DrawPicture", paint); 622 AutoOp op(this, "DrawPicture", paint);
623 op.addParam("picture", AsValue(picture)); 623 op.addParam("picture", AsValue(picture));
624 if (matrix) 624 if (matrix)
625 op.addParam("matrix", AsValue(*matrix)); 625 op.addParam("matrix", AsValue(*matrix));
626 626
627 INHERITED::drawPicture(picture, matrix, paint); 627 INHERITED::onDrawPicture(picture, matrix, paint);
628 } 628 }
629 629
630 void BenchmarkingCanvas::onDrawBitmap(const SkBitmap& bitmap, 630 void BenchmarkingCanvas::onDrawBitmap(const SkBitmap& bitmap,
631 SkScalar left, 631 SkScalar left,
632 SkScalar top, 632 SkScalar top,
633 const SkPaint* paint) { 633 const SkPaint* paint) {
634 AutoOp op(this, "DrawBitmap", paint); 634 AutoOp op(this, "DrawBitmap", paint);
635 op.addParam("bitmap", AsValue(bitmap)); 635 op.addParam("bitmap", AsValue(bitmap));
636 op.addParam("left", AsValue(left)); 636 op.addParam("left", AsValue(left));
637 op.addParam("top", AsValue(top)); 637 op.addParam("top", AsValue(top));
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 DCHECK(blob); 752 DCHECK(blob);
753 AutoOp op(this, "DrawTextBlob", &paint); 753 AutoOp op(this, "DrawTextBlob", &paint);
754 op.addParam("blob", AsValue(*blob)); 754 op.addParam("blob", AsValue(*blob));
755 op.addParam("x", AsValue(x)); 755 op.addParam("x", AsValue(x));
756 op.addParam("y", AsValue(y)); 756 op.addParam("y", AsValue(y));
757 757
758 INHERITED::onDrawTextBlob(blob, x, y, paint); 758 INHERITED::onDrawTextBlob(blob, x, y, paint);
759 } 759 }
760 760
761 } // namespace skia 761 } // namespace skia
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698