Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(941)

Unified Diff: third_party/WebKit/Source/platform/exported/Platform.cpp

Issue 1616653002: CC Animation: Move files from cc_blink to Source/platform/animation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ScrollAnimatorCompositorCoordinator for MSVC. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/exported/Platform.cpp
diff --git a/third_party/WebKit/Source/platform/exported/Platform.cpp b/third_party/WebKit/Source/platform/exported/Platform.cpp
index 11e174491a19f7d277edc1076d4f1c2dada86205..b531b1f4c17881c6a643190a9d6f2596c19236f2 100644
--- a/third_party/WebKit/Source/platform/exported/Platform.cpp
+++ b/third_party/WebKit/Source/platform/exported/Platform.cpp
@@ -28,6 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#include "platform/CompositorFactory.h"
#include "platform/PartitionAllocMemoryDumpProvider.h"
#include "public/platform/Platform.h"
@@ -49,10 +50,14 @@ void Platform::initialize(Platform* platform)
// TODO(ssid): remove this check after fixing crbug.com/486782.
if (s_platform && s_platform->m_mainThread)
s_platform->registerMemoryDumpProvider(PartitionAllocMemoryDumpProvider::instance(), "PartitionAlloc");
+
+ CompositorFactory::initializeDefault();
}
void Platform::shutdown()
{
+ CompositorFactory::shutdown();
+
if (s_platform->m_mainThread)
s_platform->unregisterMemoryDumpProvider(PartitionAllocMemoryDumpProvider::instance());

Powered by Google App Engine
This is Rietveld 408576698