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

Side by Side Diff: base/gfx/platform_canvas_linux.h

Issue 9757: Cache the GdkSkia object in PlatformContextSkia so that we aren't creating (Closed)
Patch Set: Moving files against Created 12 years, 1 month 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 | « no previous file | webkit/SConscript » ('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 BASE_GFX_PLATFORM_CANVAS_LINUX_H_ 5 #ifndef BASE_GFX_PLATFORM_CANVAS_LINUX_H_
6 #define BASE_GFX_PLATFORM_CANVAS_LINUX_H_ 6 #define BASE_GFX_PLATFORM_CANVAS_LINUX_H_
7 7
8 #include "base/gfx/platform_device_linux.h" 8 #include "base/gfx/platform_device_linux.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 10
11 #import "SkCanvas.h"
12
13 namespace gfx { 11 namespace gfx {
14 12
15 // This class is a specialization of the regular SkCanvas that is designed to 13 // This class is a specialization of the regular SkCanvas that is designed to
16 // work with a gfx::PlatformDevice to manage platform-specific drawing. It 14 // work with a gfx::PlatformDevice to manage platform-specific drawing. It
17 // allows using both Skia operations and platform-specific operations. 15 // allows using both Skia operations and platform-specific operations.
18 class PlatformCanvasLinux : public SkCanvas { 16 class PlatformCanvasLinux : public SkCanvas {
19 public: 17 public:
20 // Set is_opaque if you are going to erase the bitmap and not use 18 // Set is_opaque if you are going to erase the bitmap and not use
21 // tranparency: this will enable some optimizations. The shared_section 19 // tranparency: this will enable some optimizations. The shared_section
22 // parameter is passed to gfx::PlatformDevice::create. See it for details. 20 // parameter is passed to gfx::PlatformDevice::create. See it for details.
(...skipping 21 matching lines...) Expand all
44 // Creates a device store for use by the canvas. By default, it creates a 42 // Creates a device store for use by the canvas. By default, it creates a
45 // BitmapPlatformDevice object. Can be overridden to change the object type. 43 // BitmapPlatformDevice object. Can be overridden to change the object type.
46 virtual SkDevice* createPlatformDevice(int width, int height, bool is_opaque); 44 virtual SkDevice* createPlatformDevice(int width, int height, bool is_opaque);
47 45
48 DISALLOW_COPY_AND_ASSIGN(PlatformCanvasLinux); 46 DISALLOW_COPY_AND_ASSIGN(PlatformCanvasLinux);
49 }; 47 };
50 48
51 } // namespace gfx 49 } // namespace gfx
52 50
53 #endif // BASE_GFX_PLATFORM_CANVAS_MAC_H_ 51 #endif // BASE_GFX_PLATFORM_CANVAS_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/SConscript » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698