#ifndef CONTENT_PLUGIN_WEBPLUGIN_ACCELERATED_SURFACE_PROXY_H_
#define CONTENT_PLUGIN_WEBPLUGIN_ACCELERATED_SURFACE_PROXY_H_
#include "base/compiler_specific.h"
#include "content/child/npapi/webplugin_accelerated_surface_mac.h"
#include "ui/gl/gpu_preference.h"
class AcceleratedSurface;
namespace content {
class WebPluginProxy;
class WebPluginAcceleratedSurfaceProxy : public WebPluginAcceleratedSurface {
public:
static WebPluginAcceleratedSurfaceProxy* Create(
WebPluginProxy* plugin_proxy,
gfx::GpuPreference gpu_preference);
virtual ~WebPluginAcceleratedSurfaceProxy();
virtual void SetSize(const gfx::Size& size) OVERRIDE;
virtual CGLContextObj context() OVERRIDE;
virtual void StartDrawing() OVERRIDE;
virtual void EndDrawing() OVERRIDE;
private:
WebPluginAcceleratedSurfaceProxy(WebPluginProxy* plugin_proxy,
AcceleratedSurface* surface);
WebPluginProxy* plugin_proxy_;
AcceleratedSurface* surface_;
DISALLOW_COPY_AND_ASSIGN(WebPluginAcceleratedSurfaceProxy);
};
}
#endif