2 Copyright (C) 2009-2010 Samsung Electronics
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 LayerPluginContents_h
21 #define LayerPluginContents_h
23 #if USE(ACCELERATED_COMPOSITING)
25 #include "LayerContents.h"
28 class LayerPluginContents : public LayerContents {
30 static PassRefPtr<LayerContents> create(EflLayer* owner);
32 virtual ~LayerPluginContents();
34 virtual EflLayer::ContentsType type() const { return EflLayer::PluginContentsType; }
36 virtual void drawContents(const FloatRect& contentRect, const FloatRect& dirtyRect, float zoomFactor);
37 virtual void updateTexture(LayerTextureManager*);
39 virtual void saveImage(int frame, int tileIndex, const String& dir);
41 void setPluginView(PluginView*);
44 LayerPluginContents(EflLayer* owner);
46 void failedToUpdateTexture(const char* log);
49 bool m_needToUpdateTexture;
50 bool m_useSubImageUpdate;
51 const PluginView* m_pluginView;
54 cairo_surface_t* m_cairoSurface;
58 } // namespace WebCore
60 #endif // USE(ACCELERATED_COMPOSITING)
62 #endif // LayerPluginContents_h