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

Side by Side Diff: skia/ext/platform_canvas_linux.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/platform_canvas_linux.h ('k') | skia/ext/platform_canvas_mac.h » ('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/platform_canvas_linux.h" 5 #include "skia/ext/platform_canvas_linux.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "skia/ext/platform_device_linux.h" 8 #include "skia/ext/platform_device_linux.h"
9 #include "skia/ext/bitmap_platform_device_linux.h" 9 #include "skia/ext/bitmap_platform_device_linux.h"
10 10
11 namespace gfx { 11 namespace skia {
12 12
13 PlatformCanvasLinux::PlatformCanvasLinux() : SkCanvas() { 13 PlatformCanvasLinux::PlatformCanvasLinux() : SkCanvas() {
14 } 14 }
15 15
16 PlatformCanvasLinux::PlatformCanvasLinux(int width, int height, bool is_opaque) 16 PlatformCanvasLinux::PlatformCanvasLinux(int width, int height, bool is_opaque)
17 : SkCanvas() { 17 : SkCanvas() {
18 if (!initialize(width, height, is_opaque)) 18 if (!initialize(width, height, is_opaque))
19 CHECK(false); 19 CHECK(false);
20 } 20 }
21 21
(...skipping 23 matching lines...) Expand all
45 DCHECK(config == SkBitmap::kARGB_8888_Config); 45 DCHECK(config == SkBitmap::kARGB_8888_Config);
46 return createPlatformDevice(width, height, is_opaque); 46 return createPlatformDevice(width, height, is_opaque);
47 } 47 }
48 48
49 SkDevice* PlatformCanvasLinux::createPlatformDevice(int width, 49 SkDevice* PlatformCanvasLinux::createPlatformDevice(int width,
50 int height, 50 int height,
51 bool is_opaque) { 51 bool is_opaque) {
52 return BitmapPlatformDeviceLinux::Create(width, height, is_opaque); 52 return BitmapPlatformDeviceLinux::Create(width, height, is_opaque);
53 } 53 }
54 54
55 } // namespace gfx 55 } // namespace skia
OLDNEW
« no previous file with comments | « skia/ext/platform_canvas_linux.h ('k') | skia/ext/platform_canvas_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698