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

Side by Side Diff: Source/WebCore/platform/graphics/clutter/GraphicsLayerActor.h

Issue 13724012: Remove Cairo support. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 /*
2 * Copyright 2011, 2012 Collabora Limited
3 * Copyright (C) 2012 Intel Corporation. All rights reserved.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU Lesser General Public License,
7 * version 2.1, as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope it will be useful, but WITHOUT ANY
10 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
17 *
18 */
19
20 #ifndef GraphicsLayerActor_h
21 #define GraphicsLayerActor_h
22
23 #if USE(ACCELERATED_COMPOSITING)
24
25 #include "GraphicsLayerClutter.h"
26 #include <clutter/clutter.h>
27 #include <cogl/cogl.h>
28 #include <glib-object.h>
29
30 G_BEGIN_DECLS
31
32 #define GRAPHICS_LAYER_TYPE_ACTOR graphics_layer_actor_get_type()
33
34 #define GRAPHICS_LAYER_ACTOR(obj) \
35 (G_TYPE_CHECK_INSTANCE_CAST((obj), \
36 GRAPHICS_LAYER_TYPE_ACTOR, GraphicsLayerActor))
37
38 #define GRAPHICS_LAYER_ACTOR_CLASS(klass) \
39 (G_TYPE_CHECK_CLASS_CAST((klass), \
40 GRAPHICS_LAYER_TYPE_ACTOR, GraphicsLayerActorClass))
41
42 #define GRAPHICS_LAYER_IS_ACTOR(obj) \
43 (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
44 GRAPHICS_LAYER_TYPE_ACTOR))
45
46 #define GRAPHICS_LAYER_IS_ACTOR_CLASS(klass) \
47 (G_TYPE_CHECK_CLASS_TYPE((klass), \
48 GRAPHICS_LAYER_TYPE_ACTOR))
49
50 #define GRAPHICS_LAYER_ACTOR_GET_CLASS(obj) \
51 (G_TYPE_INSTANCE_GET_CLASS((obj), \
52 GRAPHICS_LAYER_TYPE_ACTOR, GraphicsLayerActorClass))
53
54 typedef struct _GraphicsLayerActor GraphicsLayerActor;
55 typedef struct _GraphicsLayerActorClass GraphicsLayerActorClass;
56 typedef struct _GraphicsLayerActorPrivate GraphicsLayerActorPrivate;
57
58 /**
59 * GraphicsLayerActor:
60 *
61 * The contents of this structure are private and should only be accessed
62 * through the public API.
63 */
64 struct _GraphicsLayerActor {
65 ClutterRectangle parent;
66 GraphicsLayerActorPrivate *priv;
67 GList *children;
68 };
69
70 struct _GraphicsLayerActorClass {
71 ClutterRectangleClass parent_class;
72 };
73
74 GType graphics_layer_actor_get_type(void) G_GNUC_CONST;
75
76 GraphicsLayerActor* graphicsLayerActorNew(WebCore::GraphicsLayerClutter::LayerTy pe);
77 GraphicsLayerActor* graphicsLayerActorNewWithClient(WebCore::GraphicsLayerClutte r::LayerType, WebCore::PlatformClutterLayerClient*);
78 void graphicsLayerActorSetClient(GraphicsLayerActor*, WebCore::PlatformClutterLa yerClient*);
79 WebCore::PlatformClutterLayerClient* graphicsLayerActorGetClient(GraphicsLayerAc tor*);
80 void graphicsLayerActorRemoveAll(GraphicsLayerActor*);
81 cairo_surface_t* graphicsLayerActorGetSurface(GraphicsLayerActor*);
82 void graphicsLayerActorSetSurface(GraphicsLayerActor*, cairo_surface_t*);
83 void graphicsLayerActorInvalidateRectangle(GraphicsLayerActor*, const WebCore::F loatRect&);
84 void graphicsLayerActorSetAnchorPoint(GraphicsLayerActor*, float, float, float);
85 void graphicsLayerActorGetAnchorPoint(GraphicsLayerActor*, float*, float*, float *);
86 void graphicsLayerActorSetScrollPosition(GraphicsLayerActor*, float, float);
87 void graphicsLayerActorSetTranslateX(GraphicsLayerActor*, float);
88 float graphicsLayerActorGetTranslateX(GraphicsLayerActor*);
89 void graphicsLayerActorSetTranslateY(GraphicsLayerActor*, float);
90 float graphicsLayerActorGetTranslateY(GraphicsLayerActor*);
91 gint graphicsLayerActorGetnChildren(GraphicsLayerActor*);
92 void graphicsLayerActorRemoveFromSuperLayer(GraphicsLayerActor*);
93 WebCore::GraphicsLayerClutter::LayerType graphicsLayerActorGetLayerType(Graphics LayerActor*);
94 void graphicsLayerActorSetLayerType(GraphicsLayerActor*, WebCore::GraphicsLayerC lutter::LayerType);
95 void graphicsLayerActorReplaceSublayer(GraphicsLayerActor*, ClutterActor*, Clutt erActor*);
96 void graphicsLayerActorSetSublayers(GraphicsLayerActor*, WebCore::GraphicsLayerA ctorList&);
97 gboolean graphicsLayerActorGetDrawsContent(GraphicsLayerActor*);
98 void graphicsLayerActorSetDrawsContent(GraphicsLayerActor*, bool drawsContent);
99 void graphicsLayerActorSetFlatten(GraphicsLayerActor*, bool flatten);
100
101 WebCore::PlatformClutterAnimation* graphicsLayerActorGetAnimationForKey(Graphics LayerActor*, const String);
102
103 G_END_DECLS
104
105 #endif // USE(ACCELERATED_COMPOSITING)
106
107 #endif /* GraphicsLayerActor_h */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698