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

Side by Side Diff: Source/web/WebFrameWidgetImpl.cpp

Issue 946323002: Animations: Introduce compositor AnimationPlayer and AnimationTimeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix the order. Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 m_layerTreeView->registerViewportLayers(nullptr, pageScaleLayer, roo tScrollLayer->platformLayer(), nullptr); 1007 m_layerTreeView->registerViewportLayers(nullptr, pageScaleLayer, roo tScrollLayer->platformLayer(), nullptr);
1008 } else { 1008 } else {
1009 m_layerTreeView->clearRootLayer(); 1009 m_layerTreeView->clearRootLayer();
1010 m_layerTreeView->clearViewportLayers(); 1010 m_layerTreeView->clearViewportLayers();
1011 } 1011 }
1012 } 1012 }
1013 1013
1014 suppressInvalidations(false); 1014 suppressInvalidations(false);
1015 } 1015 }
1016 1016
1017 void WebFrameWidgetImpl::setCompositorAnimationTimeline(WebCompositorAnimationTi meline* compositorTimeline)
1018 {
1019 if (m_layerTreeView)
1020 m_layerTreeView->setCompositorAnimationTimeline(compositorTimeline);
1021 }
1022
1017 void WebFrameWidgetImpl::setVisibilityState(WebPageVisibilityState visibilitySta te, bool isInitialState) 1023 void WebFrameWidgetImpl::setVisibilityState(WebPageVisibilityState visibilitySta te, bool isInitialState)
1018 { 1024 {
1019 if (!m_page) 1025 if (!m_page)
1020 return; 1026 return;
1021 1027
1022 // FIXME: This is not correct, since Show and Hide messages for a frame's Wi dget do not necessarily 1028 // FIXME: This is not correct, since Show and Hide messages for a frame's Wi dget do not necessarily
1023 // correspond to Page visibility, but is necessary until we properly sort ou t OOPIF visibility. 1029 // correspond to Page visibility, but is necessary until we properly sort ou t OOPIF visibility.
1024 m_page->setVisibilityState(static_cast<PageVisibilityState>(visibilityState) , isInitialState); 1030 m_page->setVisibilityState(static_cast<PageVisibilityState>(visibilityState) , isInitialState);
1025 1031
1026 if (m_layerTreeView) { 1032 if (m_layerTreeView) {
1027 bool visible = visibilityState == WebPageVisibilityStateVisible; 1033 bool visible = visibilityState == WebPageVisibilityStateVisible;
1028 m_layerTreeView->setVisible(visible); 1034 m_layerTreeView->setVisible(visible);
1029 } 1035 }
1030 } 1036 }
1031 1037
1032 } // namespace blink 1038 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698