Changeset 131349 in webkit
- Timestamp:
- Oct 15, 2012 1:36:24 PM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r131348 r131349 1 2012-10-15 Eunmi Lee <eunmi15.lee@samsung.com> 2 3 [EFL][WK2] Refactoring initialization and shutdown codes of EFL libraries. 4 https://bugs.webkit.org/show_bug.cgi?id=97173 5 6 Reviewed by Gyuyoung Kim. 7 8 Remove codes to initialize and shutdown the EFL libraries from 9 RunLoopEfl.cpp. Initialization and shutdown will be done in the 10 ewk_main.cpp for ui process and WebProcessMainEfl.cpp for web 11 process. 12 13 No new tests. This patch doesn't change behavior. 14 15 * platform/efl/RunLoopEfl.cpp: 16 (WebCore::RunLoop::RunLoop): 17 (WebCore::RunLoop::~RunLoop): 18 1 19 2012-10-15 Mihnea Ovidenie <mihnea@adobe.com> 2 20 -
trunk/Source/WebCore/platform/efl/RunLoopEfl.cpp
r130622 r131349 29 29 30 30 #include <Ecore.h> 31 #include <Ecore_Evas.h>32 #include <Ecore_File.h>33 #include <Edje.h>34 31 #include <wtf/OwnPtr.h> 35 32 #include <wtf/PassOwnPtr.h> … … 43 40 : m_initEfl(false) 44 41 { 45 if (!ecore_init()) {46 LOG_ERROR("could not init ecore.");47 return;48 }49 50 if (!ecore_evas_init()) {51 LOG_ERROR("could not init ecore_evas.");52 goto errorEcoreEvas;53 }54 55 if (!ecore_file_init()) {56 LOG_ERROR("could not init ecore_file.");57 goto errorEcoreFile;58 }59 60 if (!edje_init()) {61 LOG_ERROR("could not init edje.");62 goto errorEdje;63 }64 65 42 m_pipe = adoptPtr(ecore_pipe_add(wakeUpEvent, this)); 66 43 m_initEfl = true; 67 68 return;69 70 errorEdje:71 ecore_file_shutdown();72 errorEcoreFile:73 ecore_evas_shutdown();74 errorEcoreEvas:75 ecore_shutdown();76 44 } 77 45 78 46 RunLoop::~RunLoop() 79 47 { 80 if (m_initEfl) {81 edje_shutdown();82 ecore_file_shutdown();83 ecore_evas_shutdown();84 ecore_shutdown();85 }86 48 } 87 49 -
trunk/Source/WebKit2/ChangeLog
r131347 r131349 1 2012-10-15 Eunmi Lee <eunmi15.lee@samsung.com> 2 3 [EFL][WK2] Refactoring initialization and shutdown codes of EFL libraries. 4 https://bugs.webkit.org/show_bug.cgi?id=97173 5 6 Reviewed by Gyuyoung Kim. 7 8 Initialize and shutdown the EFL libraries in the ewk_main.cpp for ui 9 process and WebProcessMainEfl.cpp for web process. 10 11 * UIProcess/API/efl/ewk_main.cpp: 12 (ewk_init): 13 (ewk_shutdown): 14 * WebProcess/efl/WebProcessMainEfl.cpp: 15 (WebKit::WebProcessMainEfl): 16 1 17 2012-10-15 Jinwoo Song <jinwoo7.song@samsung.com> 2 18 -
trunk/Source/WebKit2/UIProcess/API/efl/ewk_main.cpp
r130390 r131349 80 80 #endif 81 81 82 if (!edje_init()) { 83 CRITICAL("could not init edje."); 84 goto error_edje; 85 } 86 82 87 g_type_init(); 83 88 … … 90 95 91 96 #ifdef HAVE_ECORE_X 97 error_edje: 98 ecore_x_shutdown(); 92 99 error_ecore_x: 100 ecore_evas_shutdown(); 101 #else 102 error_edje: 93 103 ecore_evas_shutdown(); 94 104 #endif … … 111 121 return _ewkInitCount; 112 122 123 edje_shutdown(); 113 124 #ifdef HAVE_ECORE_X 114 125 ecore_x_shutdown(); -
trunk/Source/WebKit2/WebProcess/efl/WebProcessMainEfl.cpp
r129872 r131349 32 32 #include "WKBase.h" 33 33 #include <Ecore.h> 34 #include <Ecore_Evas.h> 35 #include <Edje.h> 34 36 #include <Efreet.h> 35 37 #include <WebCore/ResourceHandle.h> … … 61 63 if (!ecore_init()) { 62 64 // Could not init ecore. 65 eina_shutdown(); 66 return 1; 67 } 68 69 if (!ecore_evas_init()) { 70 ecore_shutdown(); 71 eina_shutdown(); 72 return 1; 73 } 74 75 if (!edje_init()) { 76 ecore_evas_shutdown(); 77 ecore_shutdown(); 63 78 eina_shutdown(); 64 79 return 1; … … 106 121 g_object_unref(soupCache); 107 122 123 edje_shutdown(); 124 ecore_evas_shutdown(); 125 ecore_shutdown(); 126 eina_shutdown(); 127 108 128 return 0; 109 129
Note: See TracChangeset
for help on using the changeset viewer.