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

Side by Side Diff: skia/ext/vector_canvas.cc

Issue 14110: Move the "platform" wrappers in skia/ext to the skia namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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 | Annotate | Revision Log
« no previous file with comments | « skia/ext/vector_canvas.h ('k') | skia/ext/vector_canvas_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « skia/ext/vector_canvas.h ('k') | skia/ext/vector_canvas_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698