[EFL] Missing implementation of GraphicsContext3DPrivate::platformLayerSize()
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Dec 2012 01:23:47 +0000 (01:23 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Dec 2012 01:23:47 +0000 (01:23 +0000)
https://bugs.webkit.org/show_bug.cgi?id=104726

Patch by Viatcheslav Ostapenko <v.ostapenko@samsung.com> on 2012-12-11
Reviewed by Kenneth Rohde Christiansen.

Add common implementation of GraphicsContext3DPrivate::platformLayerSize() similar
to Qt version. There is nothing platform specific in Qt version.

Covered by existing tests.

* platform/graphics/efl/GraphicsContext3DPrivate.cpp:
(GraphicsContext3DPrivate::platformLayerSize):
* platform/graphics/efl/GraphicsContext3DPrivate.h:
(GraphicsContext3DPrivate):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@137395 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp
Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.h

index 011dac8..0ccc2f5 100644 (file)
@@ -1,3 +1,20 @@
+2012-12-11  Viatcheslav Ostapenko  <v.ostapenko@samsung.com>
+
+        [EFL] Missing implementation of GraphicsContext3DPrivate::platformLayerSize()
+        https://bugs.webkit.org/show_bug.cgi?id=104726
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        Add common implementation of GraphicsContext3DPrivate::platformLayerSize() similar
+        to Qt version. There is nothing platform specific in Qt version. 
+
+        Covered by existing tests.
+
+        * platform/graphics/efl/GraphicsContext3DPrivate.cpp:
+        (GraphicsContext3DPrivate::platformLayerSize):
+        * platform/graphics/efl/GraphicsContext3DPrivate.h:
+        (GraphicsContext3DPrivate):
+
 2012-12-11  No'am Rosenthal  <noam@webkit.org>
 
         [Texmap] Slightly improve readability of the antialias shader
index 3d6866f..71f9b13 100644 (file)
@@ -170,6 +170,11 @@ GraphicsSurfaceToken GraphicsContext3DPrivate::graphicsSurfaceToken() const
 {
     return m_surfaceHandle;
 }
+
+IntSize GraphicsContext3DPrivate::platformLayerSize() const
+{
+    return IntSize(m_context->m_currentWidth, m_context->m_currentHeight);
+}
 #endif
 
 } // namespace WebCore
index c65b67e..f21f1e0 100644 (file)
@@ -54,6 +54,7 @@ public:
     virtual void paintToTextureMapper(TextureMapper*, const FloatRect& target, const TransformationMatrix&, float opacity, BitmapTexture* mask);
 #endif
 #if USE(GRAPHICS_SURFACE)
+    virtual IntSize platformLayerSize() const;
     virtual uint32_t copyToGraphicsSurface();
     virtual GraphicsSurfaceToken graphicsSurfaceToken() const;
     void didResizeCanvas();