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

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

Issue 125109: Refactor the PlatformContext layer to have only one class. (Closed)
Patch Set: Created 11 years, 6 months 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
« no previous file with comments | « skia/ext/platform_device_win.cc ('k') | skia/ext/vector_canvas.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_VECTOR_CANVAS_H_ 5 #ifndef SKIA_EXT_VECTOR_CANVAS_H_
6 #define SKIA_EXT_VECTOR_CANVAS_H_ 6 #define SKIA_EXT_VECTOR_CANVAS_H_
7 7
8 #include "skia/ext/platform_canvas_win.h" 8 #include "skia/ext/platform_canvas.h"
9 #include "skia/ext/vector_device.h" 9 #include "skia/ext/vector_platform_device_win.h"
10 10
11 namespace skia { 11 namespace skia {
12 12
13 // This class is a specialization of the regular PlatformCanvas. It is designed 13 // This class is a specialization of the regular PlatformCanvas. It is designed
14 // to work with a VectorDevice to manage platform-specific drawing. It allows 14 // to work with a VectorDevice to manage platform-specific drawing. It allows
15 // using both Skia operations and platform-specific operations. It *doesn't* 15 // using both Skia operations and platform-specific operations. It *doesn't*
16 // support reading back from the bitmap backstore since it is not used. 16 // support reading back from the bitmap backstore since it is not used.
17 class VectorCanvas : public PlatformCanvasWin { 17 class VectorCanvas : public PlatformCanvas {
18 public: 18 public:
19 VectorCanvas(); 19 VectorCanvas();
20 VectorCanvas(HDC dc, int width, int height); 20 VectorCanvas(HDC dc, int width, int height);
21 virtual ~VectorCanvas(); 21 virtual ~VectorCanvas();
22 22
23 // For two-part init, call if you use the no-argument constructor above 23 // For two-part init, call if you use the no-argument constructor above
24 bool initialize(HDC context, int width, int height); 24 bool initialize(HDC context, int width, int height);
25 25
26 virtual SkBounder* setBounder(SkBounder*); 26 virtual SkBounder* setBounder(SkBounder*);
27 virtual SkDevice* createDevice(SkBitmap::Config config, 27 virtual SkDevice* createDevice(SkBitmap::Config config,
(...skipping 11 matching lines...) Expand all
39 39
40 // Copy & assign are not supported. 40 // Copy & assign are not supported.
41 VectorCanvas(const VectorCanvas&); 41 VectorCanvas(const VectorCanvas&);
42 const VectorCanvas& operator=(const VectorCanvas&); 42 const VectorCanvas& operator=(const VectorCanvas&);
43 }; 43 };
44 44
45 } // namespace skia 45 } // namespace skia
46 46
47 #endif // SKIA_EXT_VECTOR_CANVAS_H_ 47 #endif // SKIA_EXT_VECTOR_CANVAS_H_
48 48
OLDNEW
« no previous file with comments | « skia/ext/platform_device_win.cc ('k') | skia/ext/vector_canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698