[go: nahoru, domu]

blob: c0d8bf3a11ed142c46b56434042ee64ea31d0587 [file] [log] [blame]
enne34f6084c2017-02-02 22:39:081// 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
13namespace cc {
14
15using PaintCanvas = SkCanvas;
16using PaintCanvasNoDraw = SkNoDrawCanvas;
17using PaintCanvasAutoRestore = SkAutoCanvasRestore;
18
19class 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} // namespace cc
27
28#endif // CC_PAINT_PAINT_CANVAS_H_