OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "sky/engine/config.h" | |
6 #include "sky/engine/core/painting/CanvasImage.h" | 5 #include "sky/engine/core/painting/CanvasImage.h" |
7 | 6 |
8 namespace blink { | 7 namespace blink { |
9 | 8 |
10 CanvasImage::CanvasImage() { | 9 CanvasImage::CanvasImage() { |
11 } | 10 } |
12 | 11 |
13 CanvasImage::~CanvasImage() { | 12 CanvasImage::~CanvasImage() { |
14 } | 13 } |
15 | 14 |
16 int CanvasImage::width() const { | 15 int CanvasImage::width() const { |
17 return bitmap_.width(); | 16 return bitmap_.width(); |
18 } | 17 } |
19 | 18 |
20 int CanvasImage::height() const { | 19 int CanvasImage::height() const { |
21 return bitmap_.height(); | 20 return bitmap_.height(); |
22 } | 21 } |
23 | 22 |
24 } // namespace blink | 23 } // namespace blink |
OLD | NEW |