2 Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
20 #ifndef WebLayerTreeInfo_h
21 #define WebLayerTreeInfo_h
23 #if USE(ACCELERATED_COMPOSITING)
25 #include "ArgumentDecoder.h"
26 #include "ArgumentEncoder.h"
27 #include "FloatRect.h"
28 #include "FloatSize.h"
29 #include "GraphicsLayer.h"
30 #include "ShareableBitmap.h"
32 using namespace WebCore;
36 typedef uint32_t WebLayerID;
38 struct WebLayerUpdateInfo {
39 WebLayerUpdateInfo() { }
40 WebLayerUpdateInfo(const IntRect& r)
45 ShareableBitmap::Handle bitmapHandle;
47 void encode(CoreIPC::ArgumentEncoder*) const;
48 static bool decode(CoreIPC::ArgumentDecoder*, WebLayerUpdateInfo&);
59 FloatPoint3D anchorPoint;
61 TransformationMatrix transform;
62 TransformationMatrix childrenTransform;
68 bool contentsOpaque : 1;
69 bool drawsContent : 1;
70 bool backfaceVisible : 1;
71 bool masksToBounds : 1;
73 bool contentNeedsDisplay : 1;
77 Vector<WebLayerID> children;
78 RefPtr<ShareableBitmap> imageBackingStore;
80 void encode(CoreIPC::ArgumentEncoder*) const;
81 static bool decode(CoreIPC::ArgumentDecoder*, WebLayerInfo&);
84 struct WebLayerTreeInfo {
85 Vector<WebLayerInfo> layers;
86 Vector<WebLayerID> deletedLayerIDs;
87 WebLayerID rootLayerID;
90 void encode(CoreIPC::ArgumentEncoder*) const;
91 static bool decode(CoreIPC::ArgumentDecoder*, WebLayerTreeInfo&);
96 #endif // USE(ACCELERATED_COMPOSITING)
98 #endif // WebLayerTreeInfo_h