OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "skia/ext/vector_canvas.h" | 5 #include "skia/ext/vector_canvas.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "skia/ext/vector_device.h" | 8 #include "skia/ext/vector_device.h" |
9 | 9 |
10 namespace gfx { | 10 namespace skia { |
11 | 11 |
12 VectorCanvas::VectorCanvas() { | 12 VectorCanvas::VectorCanvas() { |
13 } | 13 } |
14 | 14 |
15 VectorCanvas::VectorCanvas(HDC dc, int width, int height) { | 15 VectorCanvas::VectorCanvas(HDC dc, int width, int height) { |
16 bool initialized = initialize(dc, width, height); | 16 bool initialized = initialize(dc, width, height); |
17 CHECK(initialized); | 17 CHECK(initialized); |
18 } | 18 } |
19 | 19 |
20 VectorCanvas::~VectorCanvas() { | 20 VectorCanvas::~VectorCanvas() { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 DCHECK(shared_section); | 79 DCHECK(shared_section); |
80 PlatformDeviceWin* device = VectorDevice::create( | 80 PlatformDeviceWin* device = VectorDevice::create( |
81 reinterpret_cast<HDC>(shared_section), width, height); | 81 reinterpret_cast<HDC>(shared_section), width, height); |
82 return device; | 82 return device; |
83 } | 83 } |
84 | 84 |
85 bool VectorCanvas::IsTopDeviceVectorial() const { | 85 bool VectorCanvas::IsTopDeviceVectorial() const { |
86 return getTopPlatformDevice().IsVectorial(); | 86 return getTopPlatformDevice().IsVectorial(); |
87 } | 87 } |
88 | 88 |
89 } // namespace gfx | 89 } // namespace skia |
90 | 90 |
OLD | NEW |