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

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

Issue 151147: Include gdk.h in canvas_paint_linux.h, it uses gdk_cairo_create. (Closed)
Patch Set: Created 11 years, 5 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 2 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #ifndef SKIA_EXT_CANVAS_PAINT_LINUX_H_ 6 #ifndef SKIA_EXT_CANVAS_PAINT_LINUX_H_
7 #define SKIA_EXT_CANVAS_PAINT_LINUX_H_ 7 #define SKIA_EXT_CANVAS_PAINT_LINUX_H_
8 8
9 #include "skia/ext/platform_canvas.h" 9 #include "skia/ext/platform_canvas.h"
10 10
11 #include <gdk/gdk.h>
12
11 namespace skia { 13 namespace skia {
12 14
13 // A class designed to translate skia painting into a region in a 15 // A class designed to translate skia painting into a region in a
14 // GdkWindow. This class has been adapted from the class with the same name in 16 // GdkWindow. This class has been adapted from the class with the same name in
15 // platform_canvas_win.h. On construction, it will set up a context for 17 // platform_canvas_win.h. On construction, it will set up a context for
16 // painting into, and on destruction, it will commit it to the GdkWindow. 18 // painting into, and on destruction, it will commit it to the GdkWindow.
17 template <class T> 19 template <class T>
18 class CanvasPaintT : public T { 20 class CanvasPaintT : public T {
19 public: 21 public:
20 // This constructor assumes the result is opaque. 22 // This constructor assumes the result is opaque.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // Disallow copy and assign. 92 // Disallow copy and assign.
91 CanvasPaintT(const CanvasPaintT&); 93 CanvasPaintT(const CanvasPaintT&);
92 CanvasPaintT& operator=(const CanvasPaintT&); 94 CanvasPaintT& operator=(const CanvasPaintT&);
93 }; 95 };
94 96
95 typedef CanvasPaintT<PlatformCanvas> PlatformCanvasPaint; 97 typedef CanvasPaintT<PlatformCanvas> PlatformCanvasPaint;
96 98
97 } // namespace skia 99 } // namespace skia
98 100
99 #endif // SKIA_EXT_CANVAS_PAINT_LINUX_H_ 101 #endif // SKIA_EXT_CANVAS_PAINT_LINUX_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698