summaryrefslogtreecommitdiffstats
path: root/gfx/canvas.h
blob: 589d77dfc9645df8eda463e0f9f2d8b697191015 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) 2010 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.

#ifndef GFX_CANVAS_H_
#define GFX_CANVAS_H_

#include "gfx/canvas_skia.h"

namespace gfx {

// Temporary compatibility shim, remove once Canvas2->Canvas.
class Canvas : public CanvasSkia {
 public:
  Canvas(int width, int height, bool is_opaque)
      : CanvasSkia(width, height, is_opaque) {
  }
  Canvas() : CanvasSkia() {}

  // Overridden from Canvas2:
  Canvas* AsCanvas() {
    return this;
  }

 private:
  DISALLOW_COPY_AND_ASSIGN(Canvas);
};

}

#endif  // GFX_CANVAS_H_