Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (88517 => 88518)
--- trunk/Source/_javascript_Core/ChangeLog 2011-06-10 03:45:07 UTC (rev 88517)
+++ trunk/Source/_javascript_Core/ChangeLog 2011-06-10 03:52:46 UTC (rev 88518)
@@ -1,3 +1,14 @@
+2011-06-09 Hyowon Kim <[email protected]>
+
+ Reviewed by Antonio Gomes.
+
+ [EFL] Make accelerated compositing build in Webkit-EFL
+ https://bugs.webkit.org/show_bug.cgi?id=62361
+
+ Add PLATFORM(EFL) to enable ACCELERATED_COMPOSITING on EFL port.
+
+ * wtf/Platform.h:
+
2011-06-09 Gavin Barraclough <[email protected]>
Reviewed by Geoff Garen.
Modified: trunk/Source/_javascript_Core/wtf/Platform.h (88517 => 88518)
--- trunk/Source/_javascript_Core/wtf/Platform.h 2011-06-10 03:45:07 UTC (rev 88517)
+++ trunk/Source/_javascript_Core/wtf/Platform.h 2011-06-10 03:52:46 UTC (rev 88518)
@@ -1150,7 +1150,7 @@
#endif
/* Accelerated compositing */
-#if PLATFORM(MAC) || PLATFORM(IOS) || PLATFORM(QT) || (PLATFORM(WIN) && !OS(WINCE) &&!defined(WIN_CAIRO))
+#if PLATFORM(MAC) || PLATFORM(IOS) || PLATFORM(QT) || (PLATFORM(WIN) && !OS(WINCE) &&!defined(WIN_CAIRO)) || PLATFORM(EFL)
#define WTF_USE_ACCELERATED_COMPOSITING 1
#endif
Modified: trunk/Source/WebCore/CMakeLists.txt (88517 => 88518)
--- trunk/Source/WebCore/CMakeLists.txt 2011-06-10 03:45:07 UTC (rev 88517)
+++ trunk/Source/WebCore/CMakeLists.txt 2011-06-10 03:52:46 UTC (rev 88518)
@@ -1105,6 +1105,7 @@
platform/graphics/GlyphPageTreeNode.cpp
platform/graphics/Gradient.cpp
platform/graphics/GraphicsContext.cpp
+ platform/graphics/GraphicsLayer.cpp
platform/graphics/GraphicsTypes.cpp
platform/graphics/Image.cpp
platform/graphics/ImageBuffer.cpp
@@ -1251,6 +1252,8 @@
rendering/RenderImageResourceStyleImage.cpp
rendering/RenderInline.cpp
rendering/RenderLayer.cpp
+ rendering/RenderLayerBacking.cpp
+ rendering/RenderLayerCompositor.cpp
rendering/RenderLineBoxList.cpp
rendering/RenderListBox.cpp
rendering/RenderListItem.cpp
Modified: trunk/Source/WebCore/CMakeListsEfl.txt (88517 => 88518)
--- trunk/Source/WebCore/CMakeListsEfl.txt 2011-06-10 03:45:07 UTC (rev 88517)
+++ trunk/Source/WebCore/CMakeListsEfl.txt 2011-06-10 03:52:46 UTC (rev 88518)
@@ -58,6 +58,7 @@
platform/efl/WidgetEfl.cpp
platform/graphics/ImageSource.cpp
platform/graphics/efl/FontEfl.cpp
+ platform/graphics/efl/GraphicsLayerEfl.cpp
platform/graphics/efl/IconEfl.cpp
platform/graphics/efl/ImageEfl.cpp
platform/graphics/efl/IntPointEfl.cpp
Modified: trunk/Source/WebCore/ChangeLog (88517 => 88518)
--- trunk/Source/WebCore/ChangeLog 2011-06-10 03:45:07 UTC (rev 88517)
+++ trunk/Source/WebCore/ChangeLog 2011-06-10 03:52:46 UTC (rev 88518)
@@ -1,3 +1,23 @@
+2011-06-09 Hyowon Kim <[email protected]>
+
+ Reviewed by Antonio Gomes.
+
+ [EFL] Make accelerated compositing build in Webkit-EFL
+ https://bugs.webkit.org/show_bug.cgi?id=62361
+
+ Add a new class, GraphicsLayerEfl - not yet implemented.
+ Add ACCELERATED_COMPOSITING related files to CMakeLists.
+
+ * CMakeLists.txt:
+ * CMakeListsEfl.txt:
+ * platform/graphics/efl/GraphicsLayerEfl.cpp: Added.
+ (WebCore::GraphicsLayer::create):
+ (WebCore::GraphicsLayerEfl::GraphicsLayerEfl):
+ (WebCore::GraphicsLayerEfl::~GraphicsLayerEfl):
+ (WebCore::GraphicsLayerEfl::setNeedsDisplay):
+ (WebCore::GraphicsLayerEfl::setNeedsDisplayInRect):
+ * platform/graphics/efl/GraphicsLayerEfl.h: Added.
+
2011-06-09 Jian Li <[email protected]>
Reviewed by David Levin.
Added: trunk/Source/WebCore/platform/graphics/efl/GraphicsLayerEfl.cpp (0 => 88518)
--- trunk/Source/WebCore/platform/graphics/efl/GraphicsLayerEfl.cpp (rev 0)
+++ trunk/Source/WebCore/platform/graphics/efl/GraphicsLayerEfl.cpp 2011-06-10 03:52:46 UTC (rev 88518)
@@ -0,0 +1,56 @@
+/*
+Copyright (C) 2009-2011 Samsung Electronics
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Library General Public
+License as published by the Free Software Foundation; either
+version 2 of the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Library General Public License for more details.
+
+You should have received a copy of the GNU Library General Public License
+along with this library; see the file COPYING.LIB. If not, write to
+the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+Boston, MA 02110-1301, USA.
+*/
+
+#include "config.h"
+
+#if USE(ACCELERATED_COMPOSITING)
+
+#include "GraphicsLayerEfl.h"
+
+#include "NotImplemented.h"
+
+namespace WebCore {
+
+PassOwnPtr<GraphicsLayer> GraphicsLayer::create(GraphicsLayerClient* client)
+{
+ return adoptPtr(new GraphicsLayerEfl(client));
+}
+
+GraphicsLayerEfl::GraphicsLayerEfl(GraphicsLayerClient* client)
+ : GraphicsLayer(client)
+{
+}
+
+GraphicsLayerEfl::~GraphicsLayerEfl()
+{
+}
+
+void GraphicsLayerEfl::setNeedsDisplay()
+{
+ notImplemented();
+}
+
+void GraphicsLayerEfl::setNeedsDisplayInRect(const FloatRect&)
+{
+ notImplemented();
+}
+
+} // namespace WebCore
+
+#endif // USE(ACCELERATED_COMPOSITING)
Added: trunk/Source/WebCore/platform/graphics/efl/GraphicsLayerEfl.h (0 => 88518)
--- trunk/Source/WebCore/platform/graphics/efl/GraphicsLayerEfl.h (rev 0)
+++ trunk/Source/WebCore/platform/graphics/efl/GraphicsLayerEfl.h 2011-06-10 03:52:46 UTC (rev 88518)
@@ -0,0 +1,42 @@
+/*
+ Copyright (C) 2009-2011 Samsung Electronics
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#ifndef GraphicsLayerEfl_h
+#define GraphicsLayerEfl_h
+
+#if USE(ACCELERATED_COMPOSITING)
+
+#include "GraphicsLayer.h"
+
+namespace WebCore {
+
+class GraphicsLayerEfl : public GraphicsLayer {
+public:
+ GraphicsLayerEfl(GraphicsLayerClient*);
+ virtual ~GraphicsLayerEfl();
+
+ virtual void setNeedsDisplay();
+ virtual void setNeedsDisplayInRect(const FloatRect&);
+};
+
+} // namespace WebCore
+
+#endif // USE(ACCELERATED_COMPOSITING)
+
+#endif // GraphicsLayerEfl_h
Modified: trunk/Source/WebKit/efl/ChangeLog (88517 => 88518)
--- trunk/Source/WebKit/efl/ChangeLog 2011-06-10 03:45:07 UTC (rev 88517)
+++ trunk/Source/WebKit/efl/ChangeLog 2011-06-10 03:52:46 UTC (rev 88518)
@@ -1,3 +1,19 @@
+2011-06-09 Hyowon Kim <[email protected]>
+
+ Reviewed by Antonio Gomes.
+
+ [EFL] Make accelerated compositing build in Webkit-EFL
+ https://bugs.webkit.org/show_bug.cgi?id=62361
+
+ Add functions for accelerated compositing to ChromeClientEfl.
+
+ * WebCoreSupport/ChromeClientEfl.cpp:
+ (WebCore::ChromeClientEfl::attachRootGraphicsLayer):
+ (WebCore::ChromeClientEfl::setNeedsOneShotDrawingSynchronization):
+ (WebCore::ChromeClientEfl::scheduleCompositingLayerSync):
+ (WebCore::ChromeClientEfl::allowedCompositingTriggers):
+ * WebCoreSupport/ChromeClientEfl.h:
+
2011-05-30 Raphael Kubo da Costa <[email protected]>
Reviewed by Brent Fulgham.
Modified: trunk/Source/WebKit/efl/WebCoreSupport/ChromeClientEfl.cpp (88517 => 88518)
--- trunk/Source/WebKit/efl/WebCoreSupport/ChromeClientEfl.cpp 2011-06-10 03:45:07 UTC (rev 88517)
+++ trunk/Source/WebKit/efl/WebCoreSupport/ChromeClientEfl.cpp 2011-06-10 03:52:46 UTC (rev 88518)
@@ -557,4 +557,26 @@
return adoptRef(new SearchPopupMenuEfl(client));
}
+#if USE(ACCELERATED_COMPOSITING)
+void ChromeClientEfl::attachRootGraphicsLayer(Frame* frame, GraphicsLayer* rootLayer)
+{
+ notImplemented();
}
+
+void ChromeClientEfl::setNeedsOneShotDrawingSynchronization()
+{
+ notImplemented();
+}
+
+void ChromeClientEfl::scheduleCompositingLayerSync()
+{
+ notImplemented();
+}
+
+ChromeClient::CompositingTriggerFlags ChromeClientEfl::allowedCompositingTriggers() const
+{
+ return 0;
+}
+#endif
+
+}
Modified: trunk/Source/WebKit/efl/WebCoreSupport/ChromeClientEfl.h (88517 => 88518)
--- trunk/Source/WebKit/efl/WebCoreSupport/ChromeClientEfl.h 2011-06-10 03:45:07 UTC (rev 88517)
+++ trunk/Source/WebKit/efl/WebCoreSupport/ChromeClientEfl.h 2011-06-10 03:52:46 UTC (rev 88518)
@@ -125,6 +125,13 @@
virtual void needTouchEvents(bool);
#endif
+#if USE(ACCELERATED_COMPOSITING)
+ virtual void attachRootGraphicsLayer(Frame*, GraphicsLayer*);
+ virtual void setNeedsOneShotDrawingSynchronization();
+ virtual void scheduleCompositingLayerSync();
+ virtual CompositingTriggerFlags allowedCompositingTriggers() const;
+#endif
+
virtual void runOpenPanel(Frame*, PassRefPtr<FileChooser>);
virtual void chooseIconForFiles(const Vector<String>&, FileChooser*);
virtual void formStateDidChange(const Node*);