OLD | NEW |
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_BITMAP_PLATFORM_DEVICE_LINUX_H_ | 5 #ifndef BASE_GFX_BITMAP_PLATFORM_DEVICE_LINUX_H_ |
6 #define BASE_GFX_BITMAP_PLATFORM_DEVICE_LINUX_H_ | 6 #define BASE_GFX_BITMAP_PLATFORM_DEVICE_LINUX_H_ |
7 | 7 |
8 #include "base/gfx/platform_device_linux.h" | 8 #include "base/gfx/platform_device_linux.h" |
9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
10 | 10 |
11 #include "gdk-pixbuf/gdk-pixbuf.h" | 11 #include <gdk-pixbuf/gdk-pixbuf.h> |
12 | 12 |
13 namespace gfx { | 13 namespace gfx { |
14 | 14 |
15 // ----------------------------------------------------------------------------- | 15 // ----------------------------------------------------------------------------- |
16 // This is the Linux bitmap backing for Skia. It's a GdkPixbuf of the correct | 16 // This is the Linux bitmap backing for Skia. It's a GdkPixbuf of the correct |
17 // size and we implement a SkPixelRef in order that Skia can write directly to | 17 // size and we implement a SkPixelRef in order that Skia can write directly to |
18 // the pixel memory backing the Pixbuf. | 18 // the pixel memory backing the Pixbuf. |
19 // | 19 // |
20 // We then provide an accessor for getting the pixbuf object and that can be | 20 // We then provide an accessor for getting the pixbuf object and that can be |
21 // drawn to a GDK drawing area to display the rendering result. | 21 // drawn to a GDK drawing area to display the rendering result. |
(...skipping 23 matching lines...) Expand all Loading... |
45 | 45 |
46 GdkPixbuf* pixbuf() const { return pixbuf_; } | 46 GdkPixbuf* pixbuf() const { return pixbuf_; } |
47 | 47 |
48 private: | 48 private: |
49 GdkPixbuf* pixbuf_; | 49 GdkPixbuf* pixbuf_; |
50 }; | 50 }; |
51 | 51 |
52 } // namespace gfx | 52 } // namespace gfx |
53 | 53 |
54 #endif // BASE_GFX_BITMAP_PLATFORM_DEVICE_LINUX_H_ | 54 #endif // BASE_GFX_BITMAP_PLATFORM_DEVICE_LINUX_H_ |
OLD | NEW |