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

Side by Side Diff: skia/ext/platform_canvas_win.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_unittest.cc ('k') | skia/ext/platform_canvas_win.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_WIN_H_ 5 #ifndef SKIA_EXT_PLATFORM_CANVAS_WIN_H_
6 #define SKIA_EXT_PLATFORM_CANVAS_WIN_H_ 6 #define SKIA_EXT_PLATFORM_CANVAS_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "skia/ext/platform_device_win.h" 11 #include "skia/ext/platform_device_win.h"
12 12
13 #include "SkCanvas.h" 13 #include "SkCanvas.h"
14 14
15 namespace gfx { 15 namespace skia {
16 16
17 // This class is a specialization of the regular SkCanvas that is designed to 17 // This class is a specialization of the regular SkCanvas that is designed to
18 // work with a gfx::PlatformDevice to manage platform-specific drawing. It 18 // work with a PlatformDevice to manage platform-specific drawing. It allows
19 // allows using both Skia operations and platform-specific operations. 19 // using both Skia operations and platform-specific operations.
20 class PlatformCanvasWin : public SkCanvas { 20 class PlatformCanvasWin : public SkCanvas {
21 public: 21 public:
22 // Set is_opaque if you are going to erase the bitmap and not use 22 // Set is_opaque if you are going to erase the bitmap and not use
23 // transparency: this will enable some optimizations. The shared_section 23 // transparency: this will enable some optimizations. The shared_section
24 // parameter is passed to gfx::PlatformDevice::create. See it for details. 24 // parameter is passed to gfx::PlatformDevice::create. See it for details.
25 // 25 //
26 // If you use the version with no arguments, you MUST call initialize() 26 // If you use the version with no arguments, you MUST call initialize()
27 PlatformCanvasWin(); 27 PlatformCanvasWin();
28 PlatformCanvasWin(int width, int height, bool is_opaque); 28 PlatformCanvasWin(int width, int height, bool is_opaque);
29 PlatformCanvasWin(int width, int height, bool is_opaque, 29 PlatformCanvasWin(int width, int height, bool is_opaque,
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 // If true, this canvas was created for a BeginPaint. 189 // If true, this canvas was created for a BeginPaint.
190 const bool for_paint_; 190 const bool for_paint_;
191 191
192 // Disallow copy and assign. 192 // Disallow copy and assign.
193 CanvasPaintT(const CanvasPaintT&); 193 CanvasPaintT(const CanvasPaintT&);
194 CanvasPaintT& operator=(const CanvasPaintT&); 194 CanvasPaintT& operator=(const CanvasPaintT&);
195 }; 195 };
196 196
197 typedef CanvasPaintT<PlatformCanvasWin> PlatformCanvasWinPaint; 197 typedef CanvasPaintT<PlatformCanvasWin> PlatformCanvasWinPaint;
198 198
199 } // namespace gfx 199 } // namespace skia
200 200
201 #endif // SKIA_EXT_PLATFORM_CANVAS_WIN_H_ 201 #endif // SKIA_EXT_PLATFORM_CANVAS_WIN_H_
202 202
OLDNEW
« no previous file with comments | « skia/ext/platform_canvas_unittest.cc ('k') | skia/ext/platform_canvas_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698