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 #include "skia/ext/bitmap_platform_device_linux.h" | 5 #include "skia/ext/bitmap_platform_device_linux.h" |
6 | 6 |
7 #include <cairo/cairo.h> | 7 #include <cairo/cairo.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 | 10 |
11 namespace gfx { | 11 namespace skia { |
12 | 12 |
13 // ----------------------------------------------------------------------------- | 13 // ----------------------------------------------------------------------------- |
14 // These objects are reference counted and own a Cairo surface. The surface is | 14 // These objects are reference counted and own a Cairo surface. The surface is |
15 // the backing store for a Skia bitmap and we reference count it so that we can | 15 // the backing store for a Skia bitmap and we reference count it so that we can |
16 // copy BitmapPlatformDeviceLinux objects without having to copy all the image | 16 // copy BitmapPlatformDeviceLinux objects without having to copy all the image |
17 // data. | 17 // data. |
18 // ----------------------------------------------------------------------------- | 18 // ----------------------------------------------------------------------------- |
19 class BitmapPlatformDeviceLinux::BitmapPlatformDeviceLinuxData | 19 class BitmapPlatformDeviceLinux::BitmapPlatformDeviceLinuxData |
20 : public base::RefCounted<BitmapPlatformDeviceLinuxData> { | 20 : public base::RefCounted<BitmapPlatformDeviceLinuxData> { |
21 public: | 21 public: |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 cairo_surface_t* BitmapPlatformDeviceLinux::surface() const { | 84 cairo_surface_t* BitmapPlatformDeviceLinux::surface() const { |
85 return data_->surface(); | 85 return data_->surface(); |
86 } | 86 } |
87 | 87 |
88 BitmapPlatformDeviceLinux& BitmapPlatformDeviceLinux::operator=( | 88 BitmapPlatformDeviceLinux& BitmapPlatformDeviceLinux::operator=( |
89 const BitmapPlatformDeviceLinux& other) { | 89 const BitmapPlatformDeviceLinux& other) { |
90 data_ = other.data_; | 90 data_ = other.data_; |
91 return *this; | 91 return *this; |
92 } | 92 } |
93 | 93 |
94 } // namespace gfx | 94 } // namespace skia |
OLD | NEW |