TextureMapperLayerClientQt.h [plain text]
#ifndef TextureMapperLayerClientQt_h
#define TextureMapperLayerClientQt_h
class QWebFrameAdapter;
#include "GraphicsLayer.h"
#include "TextureMapper.h"
#include "TextureMapperFPSCounter.h"
#include "Timer.h"
#include <wtf/OwnPtr.h>
namespace WebCore {
class TextureMapperLayer;
#if USE(ACCELERATED_COMPOSITING)
class TextureMapperLayerClientQt {
public:
TextureMapperLayerClientQt(QWebFrameAdapter*);
~TextureMapperLayerClientQt();
void syncRootLayer();
TextureMapperLayer* rootLayer();
void markForSync(bool scheduleSync);
void setRootGraphicsLayer(GraphicsLayer*);
void syncLayers(Timer<TextureMapperLayerClientQt>*);
void renderCompositedLayers(GraphicsContext*, const IntRect& clip);
private:
QWebFrameAdapter* m_frame;
OwnPtr<GraphicsLayer> m_rootGraphicsLayer;
Timer<TextureMapperLayerClientQt> m_syncTimer;
WebCore::TextureMapperLayer* m_rootTextureMapperLayer;
OwnPtr<WebCore::TextureMapper> m_textureMapper;
WebCore::TextureMapperFPSCounter m_fpsCounter;
};
#endif
}
#endif