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

Side by Side Diff: skia/ext/platform_canvas_mac.h

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.cc ('k') | skia/ext/platform_canvas_mac.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 #ifndef SKIA_EXT_PLATFORM_CANVAS_MAC_H_ 5 #ifndef SKIA_EXT_PLATFORM_CANVAS_MAC_H_
6 #define SKIA_EXT_PLATFORM_CANVAS_MAC_H_ 6 #define SKIA_EXT_PLATFORM_CANVAS_MAC_H_
7 7
8 #include "skia/ext/platform_device_mac.h" 8 #include "skia/ext/platform_device_mac.h"
9 9
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
11 11
12 namespace gfx { 12 namespace skia {
13 13
14 // This class is a specialization of the regular SkCanvas that is designed to 14 // This class is a specialization of the regular SkCanvas that is designed to
15 // work with a gfx::PlatformDevice to manage platform-specific drawing. It 15 // work with a gfx::PlatformDevice to manage platform-specific drawing. It
16 // allows using both Skia operations and platform-specific operations. 16 // allows using both Skia operations and platform-specific operations.
17 class PlatformCanvasMac : public SkCanvas { 17 class PlatformCanvasMac : public SkCanvas {
18 public: 18 public:
19 // Set is_opaque if you are going to erase the bitmap and not use 19 // Set is_opaque if you are going to erase the bitmap and not use
20 // tranparency: this will enable some optimizations. The shared_section 20 // tranparency: this will enable some optimizations. The shared_section
21 // parameter is passed to gfx::PlatformDevice::create. See it for details. 21 // parameter is passed to gfx::PlatformDevice::create. See it for details.
22 // 22 //
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // Calling SkCanvas' version will create a new device which is not compatible 75 // Calling SkCanvas' version will create a new device which is not compatible
76 // with us and we will crash if somebody tries to draw into it with 76 // with us and we will crash if somebody tries to draw into it with
77 // CoreGraphics. 77 // CoreGraphics.
78 SkDevice* setBitmapDevice(const SkBitmap& bitmap); 78 SkDevice* setBitmapDevice(const SkBitmap& bitmap);
79 79
80 // Disallow copy and assign. 80 // Disallow copy and assign.
81 PlatformCanvasMac(const PlatformCanvasMac&); 81 PlatformCanvasMac(const PlatformCanvasMac&);
82 PlatformCanvasMac& operator=(const PlatformCanvasMac&); 82 PlatformCanvasMac& operator=(const PlatformCanvasMac&);
83 }; 83 };
84 84
85 } // namespace gfx 85 } // namespace skia
86 86
87 #endif // SKIA_EXT_PLATFORM_CANVAS_MAC_H_ 87 #endif // SKIA_EXT_PLATFORM_CANVAS_MAC_H_
88 88
OLDNEW
« no previous file with comments | « skia/ext/platform_canvas_linux.cc ('k') | skia/ext/platform_canvas_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698