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

Side by Side Diff: cc/paint/paint_canvas.h

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 #ifndef CC_PAINT_PAINT_CANVAS_H_
6 #define CC_PAINT_PAINT_CANVAS_H_
7
8 #include "cc/paint/paint_export.h"
9 #include "third_party/skia/include/core/SkCanvas.h"
10 #include "third_party/skia/include/utils/SkNWayCanvas.h"
11 #include "third_party/skia/include/utils/SkNoDrawCanvas.h"
12
13 namespace cc {
14
15 typedef SkCanvas PaintCanvas;
danakj 2017/01/20 23:34:13 s/typedef/using/g
16 typedef SkNoDrawCanvas PaintCanvasNoDraw;
17 typedef SkAutoCanvasRestore PaintCanvasAutoRestore;
18
19 class CC_PAINT_EXPORT PaintCanvasPassThrough : public SkNWayCanvas {
20 public:
21 explicit PaintCanvasPassThrough(SkCanvas* canvas);
22 PaintCanvasPassThrough(int width, int height);
23 ~PaintCanvasPassThrough() override;
24 };
25
26 inline SkCanvas* GetSkCanvas(PaintCanvas* canvas) {
27 return canvas;
28 }
29
30 } // namespace cc
31
32 #endif // CC_PAINT_PAINT_CANVAS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698