OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright (C) 2011 Igalia S.L. | |
3 * Copyright (C) 2012 Collabora Ltd. | |
4 * | |
5 * This library is free software; you can redistribute it and/or | |
6 * modify it under the terms of the GNU Lesser General Public | |
7 * License as published by the Free Software Foundation; either | |
8 * version 2 of the License, or (at your option) any later version. | |
9 * | |
10 * This library is distributed in the hope that it will be useful, | |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 * Lesser General Public License for more details. | |
14 * | |
15 * You should have received a copy of the GNU Lesser General Public | |
16 * License along with this library; if not, write to the Free | |
17 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |
18 * Boston, MA 02110-1301 USA | |
19 */ | |
20 | |
21 #ifndef GraphicsContext3DPrivate_h | |
22 #define GraphicsContext3DPrivate_h | |
23 | |
24 #include "GraphicsContext3D.h" | |
25 #include <wtf/PassOwnPtr.h> | |
26 | |
27 #if USE(ACCELERATED_COMPOSITING) && USE(CLUTTER) | |
28 #include <clutter/clutter.h> | |
29 #endif | |
30 | |
31 namespace WebCore { | |
32 | |
33 class TransformationMatrix; | |
34 | |
35 class GraphicsContext3DPrivate { | |
36 public: | |
37 static PassOwnPtr<GraphicsContext3DPrivate> create(GraphicsContext3D*, HostW
indow*); | |
38 ~GraphicsContext3DPrivate(); | |
39 bool makeContextCurrent(); | |
40 PlatformGraphicsContext3D platformContext(); | |
41 ClutterActor* platformLayer() { return m_layer; } | |
42 | |
43 #if USE(ACCELERATED_COMPOSITING) && USE(CLUTTER) | |
44 virtual void paintToGraphicsLayerActor(ClutterActor*, const FloatRect& targe
t, const TransformationMatrix&, float opacity); | |
45 #endif | |
46 | |
47 private: | |
48 GraphicsContext3DPrivate(GraphicsContext3D*, HostWindow*); | |
49 | |
50 GraphicsContext3D* m_context; | |
51 HostWindow* m_window; | |
52 ClutterActor* m_layer; | |
53 }; | |
54 | |
55 } | |
56 | |
57 #endif // GraphicsContext3DPrivate_h | |
OLD | NEW |