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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "cc/paint/paint_canvas.h"
6
7 namespace cc {
8
9 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
10 : SkNWayCanvas(canvas->getBaseLayerSize().width(),
11 canvas->getBaseLayerSize().height()) {
12 SkIRect raster_bounds;
13 canvas->getClipDeviceBounds(&raster_bounds);
14 clipRect(SkRect::MakeFromIRect(raster_bounds));
15 setMatrix(canvas->getTotalMatrix());
16 addCanvas(canvas);
17 }
18
19 PaintCanvasPassThrough::PaintCanvasPassThrough(int width, int height)
20 : SkNWayCanvas(width, height) {}
21
22 PaintCanvasPassThrough::~PaintCanvasPassThrough() {}
danakj 2017/01/20 23:34:13 = default
23
24 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698