Changeset 111673 in webkit
- Timestamp:
- Mar 22, 2012 5:43:03 AM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 2 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r111637 r111673 1 2012-03-22 Hyowon Kim <hw1008.kim@samsung.com> 2 3 [EFL] Add PageClientEfl to WebCoreSupport. 4 https://bugs.webkit.org/show_bug.cgi?id=80748 5 6 Reviewed by Noam Rosenthal. 7 8 * wtf/Platform.h: Disable accelerated compositing. It's not ready yet. 9 1 10 2012-03-21 Beth Dakin <bdakin@apple.com> 2 11 -
trunk/Source/WTF/wtf/Platform.h
r111637 r111673 1063 1063 1064 1064 /* Accelerated compositing */ 1065 #if PLATFORM(MAC) || PLATFORM(IOS) || PLATFORM(QT) || (PLATFORM(WIN) && !OS(WINCE) && !PLATFORM(WIN_CAIRO)) || PLATFORM(EFL)1065 #if PLATFORM(MAC) || PLATFORM(IOS) || PLATFORM(QT) || (PLATFORM(WIN) && !OS(WINCE) && !PLATFORM(WIN_CAIRO)) 1066 1066 #define WTF_USE_ACCELERATED_COMPOSITING 1 1067 1067 #endif -
trunk/Source/WebCore/ChangeLog
r111672 r111673 1 2012-03-22 Hyowon Kim <hw1008.kim@samsung.com> 2 3 [EFL] Add PageClientEfl to WebCoreSupport. 4 https://bugs.webkit.org/show_bug.cgi?id=80748 5 6 Reviewed by Noam Rosenthal. 7 8 * platform/Widget.h: Use PageClientEfl as type for PlatformPageClient. 9 (WebCore): 10 * platform/graphics/efl/GraphicsContext3DPrivate.cpp: 11 (WebCore::GraphicsContext3DPrivate::createSurface): Change the argument type. 12 * plugins/efl/PluginViewEfl.cpp: 13 (WebCore::PluginView::platformGetValue): Use PageClientEfl. 14 1 15 2012-03-22 Kaustubh Atrawalkar <kaustubh@motorola.com> 2 16 -
trunk/Source/WebCore/platform/Widget.h
r111085 r111673 91 91 #include "PageClientBlackBerry.h" 92 92 typedef PageClientBlackBerry* PlatformPageClient; 93 #elif PLATFORM(EFL) 94 namespace WebCore { 95 class PageClientEfl; 96 typedef PageClientEfl* PlatformPageClient; 97 } 93 98 #else 94 99 typedef PlatformWidget PlatformPageClient; -
trunk/Source/WebCore/platform/graphics/efl/GraphicsContext3DPrivate.cpp
r109696 r111673 140 140 141 141 // Create and specially set up a evas_object which act as the render targer surface. 142 if (!pageClient->createEvasObjectForAcceleratedCompositing(&nativeSurface, x, y, width, height))142 if (!pageClient->createEvasObjectForAcceleratedCompositing(&nativeSurface, IntRect(x, y, width, height))) 143 143 return false; 144 144 } -
trunk/Source/WebCore/plugins/efl/PluginViewEfl.cpp
r103544 r111673 39 39 #include "MouseEvent.h" 40 40 #include "NotImplemented.h" 41 #include "PageClientEfl.h" 41 42 #include "PluginPackage.h" 42 43 #include "npruntime_impl.h" … … 283 284 284 285 case NPNVnetscapeWindow: { 285 Evas_Object* widget = m_parentFrame->view()->hostWindow()->platformPageClient(); 286 PageClientEfl* pageClient = static_cast<PageClientEfl*>(m_parentFrame->view()->hostWindow()->platformPageClient()); 287 Evas_Object* widget = pageClient->view(); 286 288 Evas* evas = evas_object_evas_get(widget); 287 289 Ecore_Evas* ecoreEvas = ecore_evas_ecore_evas_get(evas); -
trunk/Source/WebKit/ChangeLog
r111504 r111673 1 2012-03-22 Hyowon Kim <hw1008.kim@samsung.com> 2 3 [EFL] Add PageClientEfl to WebCoreSupport. 4 https://bugs.webkit.org/show_bug.cgi?id=80748 5 6 Reviewed by Noam Rosenthal. 7 8 * PlatformEfl.cmake: Add WebCore/platform/graphics/efl to the include path 9 and PageClientEfl.cpp to the source list. 10 1 11 2012-03-20 Eric Seidel <eric@webkit.org> 2 12 -
trunk/Source/WebKit/PlatformEfl.cmake
r110991 r111673 14 14 "${WEBCORE_DIR}/platform/efl" 15 15 "${WEBCORE_DIR}/platform/graphics/cairo" 16 "${WEBCORE_DIR}/platform/graphics/efl" 16 17 ${Cairo_INCLUDE_DIRS} 17 18 ${ECORE_X_INCLUDE_DIRS} … … 81 82 efl/WebCoreSupport/InspectorClientEfl.cpp 82 83 efl/WebCoreSupport/NotificationPresenterClientEfl.cpp 84 efl/WebCoreSupport/PageClientEfl.cpp 83 85 84 86 efl/ewk/ewk_auth.cpp -
trunk/Source/WebKit/efl/ChangeLog
r111361 r111673 1 2012-03-22 Hyowon Kim <hw1008.kim@samsung.com> 2 3 [EFL] Add PageClientEfl to WebCoreSupport. 4 https://bugs.webkit.org/show_bug.cgi?id=80748 5 6 Reviewed by Noam Rosenthal. 7 8 This patch adds PageClientEfl for implementaion of accelerated compositing. 9 10 * WebCoreSupport/ChromeClientEfl.cpp: 11 (WebCore::ChromeClientEfl::platformPageClient): 12 * WebCoreSupport/PageClientEfl.cpp: Added. 13 (WebCore): 14 (WebCore::PageClientEfl::PageClientEfl): 15 (WebCore::PageClientEfl::~PageClientEfl): 16 (WebCore::PageClientEfl::createEvasObjectForAcceleratedCompositing): 17 Just call ewk_view_accelerated_compositing_object_create(). 18 (WebCore::PageClientEfl::acceleratedCompositingContext): 19 Just call ewk_view_accelerated_compositing_context_get(). 20 * WebCoreSupport/PageClientEfl.h: Added. 21 (WebCore): 22 (PageClientEfl): 23 (WebCore::PageClientEfl::view): Return ewkView. 24 * ewk/ewk_private.h: 25 (WebCore): 26 (EWKPrivate): 27 * ewk/ewk_view.cpp: 28 (_Ewk_View_Private_Data): Add OwnPtr<PageClientEfl>. 29 (_ewk_view_priv_new): Create a new PageClientEfl. 30 (ewk_view_accelerated_compositing_object_create): Not implemented. 31 (ewk_view_accelerated_compositing_context_get): Not implemented. 32 (EWKPrivate::corePageClient): Return the PageClientEfl pointer. 33 (EWKPrivate): 34 1 35 2012-03-19 Adam Barth <abarth@webkit.org> 2 36 -
trunk/Source/WebKit/efl/WebCoreSupport/ChromeClientEfl.cpp
r110784 r111673 340 340 PlatformPageClient ChromeClientEfl::platformPageClient() const 341 341 { 342 return m_view;342 return EWKPrivate::corePageClient(m_view); 343 343 } 344 344 -
trunk/Source/WebKit/efl/ewk/ewk_private.h
r106908 r111673 37 37 #include "ewk_view.h" 38 38 #include <Evas.h> 39 #if USE(ACCELERATED_COMPOSITING) 40 #include <Evas_GL.h> 41 #endif 39 42 #include <wtf/PassRefPtr.h> 40 43 #include <wtf/Vector.h> … … 75 78 struct ContextMenu; 76 79 struct ContextMenuItem; 80 #if USE(ACCELERATED_COMPOSITING) 81 class GraphicsContext3D; 82 class GraphicsLayer; 83 #endif 77 84 } 78 85 … … 88 95 WebCore::Page *corePage(const Evas_Object *ewkView); 89 96 WebCore::HistoryItem *coreHistoryItem(const Ewk_History_Item *ewkHistoryItem); 97 WebCore::PlatformPageClient corePageClient(Evas_Object* ewkView); 90 98 91 99 Evas_Object* kitFrame(const WebCore::Frame* coreFrame); … … 235 243 void ewk_view_mixed_content_run_set(Evas_Object* ewkView, bool hasRun); 236 244 245 #if USE(ACCELERATED_COMPOSITING) 246 bool ewk_view_accelerated_compositing_object_create(Evas_Object* ewkView, Evas_Native_Surface* nativeSurface, const WebCore::IntRect& rect); 247 WebCore::GraphicsContext3D* ewk_view_accelerated_compositing_context_get(Evas_Object* ewkView); 248 #endif 249 237 250 #endif // ewk_private_h -
trunk/Source/WebKit/efl/ewk/ewk_view.cpp
r110991 r111673 46 46 #include "JSLock.h" 47 47 #include "LayoutTypes.h" 48 #include "PageClientEfl.h" 48 49 #include "PlatformMouseEvent.h" 49 50 #include "PopupMenuClient.h" … … 77 78 #if ENABLE(BATTERY_STATUS) 78 79 #include "BatteryClientEfl.h" 80 #endif 81 82 #if USE(ACCELERATED_COMPOSITING) 83 #include "NotImplemented.h" 79 84 #endif 80 85 … … 143 148 WebCore::ViewportArguments viewportArguments; 144 149 Ewk_History* history; 150 OwnPtr<WebCore::PageClientEfl> pageClient; 145 151 struct { 146 152 Ewk_Menu menu; … … 717 723 priv->soupSession = WebCore::ResourceHandle::defaultSession(); 718 724 725 priv->pageClient = adoptPtr(new WebCore::PageClientEfl(smartData->self)); 726 719 727 return priv; 720 728 } … … 3925 3933 } 3926 3934 3935 #if USE(ACCELERATED_COMPOSITING) 3936 bool ewk_view_accelerated_compositing_object_create(Evas_Object* ewkView, Evas_Native_Surface* nativeSurface, const WebCore::IntRect& rect) 3937 { 3938 notImplemented(); 3939 return false; 3940 } 3941 3942 WebCore::GraphicsContext3D* ewk_view_accelerated_compositing_context_get(Evas_Object* ewkView) 3943 { 3944 notImplemented(); 3945 return 0; 3946 } 3947 #endif 3948 3927 3949 namespace EWKPrivate { 3928 3950 … … 3934 3956 } 3935 3957 3958 WebCore::PlatformPageClient corePageClient(Evas_Object* ewkView) 3959 { 3960 EWK_VIEW_SD_GET_OR_RETURN(ewkView, smartData, 0); 3961 EWK_VIEW_PRIV_GET_OR_RETURN(smartData, priv, 0); 3962 return priv->pageClient.get(); 3963 } 3964 3936 3965 } // namespace EWKPrivate
Note: See TracChangeset
for help on using the changeset viewer.