ImageBufferDataBlackBerry.h [plain text]
#ifndef ImageBufferDataBlackBerry_h
#define ImageBufferDataBlackBerry_h
#include "CanvasLayerWebKitThread.h"
#include "GraphicsContext.h"
#include <BlackBerryPlatformGraphics.h>
#include <BlackBerryPlatformGuardedPointer.h>
#include <wtf/Uint8ClampedArray.h>
namespace WebCore {
class GraphicsContext;
class IntRect;
class HostWindow;
class ImageBufferData {
public:
void getImageData(GraphicsContext*, const IntRect&, const IntRect&, unsigned char* result, bool unmultiply) const;
void draw(GraphicsContext* thisContext, GraphicsContext* otherContext, ColorSpace styleColorSpace, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator, bool useLowQualityScale) const;
BlackBerry::Platform::Graphics::Buffer* m_buffer;
RefPtr<CanvasLayerWebKitThread> m_platformLayer;
HostWindow* m_window;
};
}
#endif // ImageBufferDataBlackBerry_h