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

Side by Side Diff: skia/ext/bitmap_platform_device_linux.cc

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/bitmap_platform_device_linux.h ('k') | skia/ext/bitmap_platform_device_mac.h » ('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 #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
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
OLDNEW
« no previous file with comments | « skia/ext/bitmap_platform_device_linux.h ('k') | skia/ext/bitmap_platform_device_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698