summaryrefslogtreecommitdiff
path: root/Source/WebKit/chromium/src/GraphicsContext3DPrivate.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-05-18 14:03:11 +0200
committerSimon Hausmann <simon.hausmann@nokia.com>2012-05-18 14:03:11 +0200
commit8d473cf9743f1d30a16a27114e93bd5af5648d23 (patch)
treecdca40d0353886b3ca52f33a2d7b8f1c0011aafc /Source/WebKit/chromium/src/GraphicsContext3DPrivate.h
parent1b914638db989aaa98631a1c1e02c7b2d44805d8 (diff)
downloadqtwebkit-8d473cf9743f1d30a16a27114e93bd5af5648d23.tar.gz
Imported WebKit commit 1350e72f7345ced9da2bd9980deeeb5a8d62fab4 (http://svn.webkit.org/repository/webkit/trunk@117578)
Weekly snapshot
Diffstat (limited to 'Source/WebKit/chromium/src/GraphicsContext3DPrivate.h')
-rw-r--r--Source/WebKit/chromium/src/GraphicsContext3DPrivate.h23
1 files changed, 5 insertions, 18 deletions
diff --git a/Source/WebKit/chromium/src/GraphicsContext3DPrivate.h b/Source/WebKit/chromium/src/GraphicsContext3DPrivate.h
index b79898971..a269192a4 100644
--- a/Source/WebKit/chromium/src/GraphicsContext3DPrivate.h
+++ b/Source/WebKit/chromium/src/GraphicsContext3DPrivate.h
@@ -28,16 +28,12 @@
#include "Extensions3DChromium.h"
#include "GraphicsContext3D.h"
+#include "SkBitmap.h"
#include <wtf/HashSet.h>
#include <wtf/OwnArrayPtr.h>
#include <wtf/OwnPtr.h>
-#if USE(SKIA)
-#include "SkBitmap.h"
-#endif
-#if USE(SKIA)
class GrContext;
-#endif
namespace WebKit {
class WebGraphicsContext3D;
@@ -68,9 +64,7 @@ public:
PlatformGraphicsContext3D platformGraphicsContext3D() const;
Platform3DObject platformTexture() const;
-#if USE(SKIA)
GrContext* grContext();
-#endif
bool makeContextCurrent();
@@ -82,10 +76,10 @@ public:
bool layerComposited() const;
void markLayerComposited();
- void paintRenderingResultsToCanvas(CanvasRenderingContext*, DrawingBuffer*);
+ void paintRenderingResultsToCanvas(ImageBuffer*, DrawingBuffer*);
void paintFramebufferToCanvas(int framebuffer, int width, int height, bool premultiplyAlpha, ImageBuffer*);
PassRefPtr<ImageData> paintRenderingResultsToImageData(DrawingBuffer*);
- bool paintCompositedResultsToCanvas(CanvasRenderingContext*);
+ bool paintCompositedResultsToCanvas(ImageBuffer*);
void prepareTexture();
@@ -324,6 +318,8 @@ public:
private:
GraphicsContext3DPrivate(PassOwnPtr<WebKit::WebGraphicsContext3D>, bool preserveDrawingBuffer);
+ void initializeExtensions();
+
OwnPtr<WebKit::WebGraphicsContext3D> m_impl;
OwnPtr<Extensions3DChromium> m_extensions;
OwnPtr<GraphicsContextLostCallbackAdapter> m_contextLostCallbackAdapter;
@@ -343,7 +339,6 @@ private:
};
ResourceSafety m_resourceSafety;
-#if USE(SKIA)
// If the width and height of the Canvas's backing store don't
// match those that we were given in the most recent call to
// reshape(), then we need an intermediate bitmap to read back the
@@ -352,14 +347,6 @@ private:
SkBitmap m_resizingBitmap;
GrContext* m_grContext;
-#endif
-
-#if USE(CG)
- OwnArrayPtr<unsigned char> m_renderOutput;
- size_t m_renderOutputSize;
-#endif
-
- void initializeExtensions();
};
} // namespace WebCore