/* * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. */ #ifndef ImageBufferDataJava_h #define ImageBufferDataJava_h #include "RQRef.h" #include "GraphicsContext.h" namespace WebCore { class IntSize; class FloatSize; class ImageBuffer; class ImageBufferData { public: ImageBufferData(const FloatSize &size, ImageBuffer &rq_holder, float resolutionScale); JLObject getWCImage() const; unsigned char *data() const; void update(); //we need to have RQRef here due to [deref] //callback in destructor. Texture need to be released. RefPtr m_image; //WCImage wrapper ImageBuffer &m_rq_holder; //accessor to the RenderQueue std::unique_ptr m_context; //XXX: recheck other usages //RenderQueue need to be processed before pixel buffer extraction. }; } // namespace WebCore #endif //ImageBufferDataJava_h