#ifndef WEBKIT_COMMON_GPU_GRCONTEXT_FOR_WEBGRAPHICSCONTEXT3D_H_
#define WEBKIT_COMMON_GPU_GRCONTEXT_FOR_WEBGRAPHICSCONTEXT3D_H_
#include "base/basictypes.h"
#include "skia/ext/refptr.h"
#include "webkit/common/gpu/webkit_gpu_export.h"
class GrContext;
namespace blink { class WebGraphicsContext3D; }
namespace webkit {
namespace gpu {
class WEBKIT_GPU_EXPORT GrContextForWebGraphicsContext3D {
public:
explicit GrContextForWebGraphicsContext3D(
blink::WebGraphicsContext3D* context3d);
virtual ~GrContextForWebGraphicsContext3D();
GrContext* get() { return gr_context_.get(); }
void SetMemoryLimit(bool nonzero_allocation);
private:
skia::RefPtr<class GrContext> gr_context_;
DISALLOW_COPY_AND_ASSIGN(GrContextForWebGraphicsContext3D);
};
}
}
#endif