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

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

Issue 42056: Basic windowless plugins, try 2. (Closed)
Patch Set: review comments Created 11 years, 9 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 | « base/gfx/native_widget_types.h ('k') | skia/ext/platform_canvas_linux.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 #ifndef SKIA_EXT_BITMAP_PLATFORM_DEVICE_LINUX_H_ 5 #ifndef SKIA_EXT_BITMAP_PLATFORM_DEVICE_LINUX_H_
6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_LINUX_H_ 6 #define SKIA_EXT_BITMAP_PLATFORM_DEVICE_LINUX_H_
7 7
8 #include "base/ref_counted.h" 8 #include "base/ref_counted.h"
9 #include "skia/ext/platform_device_linux.h" 9 #include "skia/ext/platform_device_linux.h"
10 10
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 BitmapPlatformDeviceLinuxData* data); 78 BitmapPlatformDeviceLinuxData* data);
79 virtual ~BitmapPlatformDeviceLinux(); 79 virtual ~BitmapPlatformDeviceLinux();
80 BitmapPlatformDeviceLinux& operator=(const BitmapPlatformDeviceLinux& other); 80 BitmapPlatformDeviceLinux& operator=(const BitmapPlatformDeviceLinux& other);
81 81
82 // A stub copy constructor. Needs to be properly implemented. 82 // A stub copy constructor. Needs to be properly implemented.
83 BitmapPlatformDeviceLinux(const BitmapPlatformDeviceLinux& other); 83 BitmapPlatformDeviceLinux(const BitmapPlatformDeviceLinux& other);
84 84
85 // Bitmaps aren't vector graphics. 85 // Bitmaps aren't vector graphics.
86 virtual bool IsVectorial() { return false; } 86 virtual bool IsVectorial() { return false; }
87 87
88 // If someone wants to paint on a Cairo surface version of our
89 // buffer, then give them the surface we're already using.
90 virtual cairo_surface_t* beginPlatformPaint() { return surface(); }
91
88 cairo_surface_t* surface() const; 92 cairo_surface_t* surface() const;
89 93
90 private: 94 private:
91 scoped_refptr<BitmapPlatformDeviceLinuxData> data_; 95 scoped_refptr<BitmapPlatformDeviceLinuxData> data_;
92 }; 96 };
93 97
94 } // namespace skia 98 } // namespace skia
95 99
96 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_LINUX_H_ 100 #endif // SKIA_EXT_BITMAP_PLATFORM_DEVICE_LINUX_H_
OLDNEW
« no previous file with comments | « base/gfx/native_widget_types.h ('k') | skia/ext/platform_canvas_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698