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

Unified Diff: cc/paint/paint_canvas.cc

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: Clean up comments, fix mac build Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: cc/paint/paint_canvas.cc
diff --git a/cc/paint/paint_canvas.cc b/cc/paint/paint_canvas.cc
new file mode 100644
index 0000000000000000000000000000000000000000..98efe5da0231a9a3d3653ade8e7f2bbf30d191c2
--- /dev/null
+++ b/cc/paint/paint_canvas.cc
@@ -0,0 +1,24 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "cc/paint/paint_canvas.h"
+
+namespace cc {
+
+PaintCanvasPassThrough::PaintCanvasPassThrough(SkCanvas* canvas)
danakj 2017/01/20 23:34:13 Should we unit test this thing?
enne (OOO) 2017/01/24 01:51:27 This gets used in a bunch of tests. I'm happy to
+ : SkNWayCanvas(canvas->getBaseLayerSize().width(),
+ canvas->getBaseLayerSize().height()) {
+ SkIRect raster_bounds;
+ canvas->getClipDeviceBounds(&raster_bounds);
+ clipRect(SkRect::MakeFromIRect(raster_bounds));
+ setMatrix(canvas->getTotalMatrix());
+ addCanvas(canvas);
+}
+
+PaintCanvasPassThrough::PaintCanvasPassThrough(int width, int height)
+ : SkNWayCanvas(width, height) {}
+
+PaintCanvasPassThrough::~PaintCanvasPassThrough() {}
danakj 2017/01/20 23:34:13 = default
+
+} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698