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

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

Issue 946323002: Animations: Introduce compositor AnimationPlayer and AnimationTimeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 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 4289 matching lines...) Expand 10 before | Expand all | Expand 10 after
4300 void WebViewImpl::scheduleAnimation() 4300 void WebViewImpl::scheduleAnimation()
4301 { 4301 {
4302 if (m_layerTreeView) { 4302 if (m_layerTreeView) {
4303 m_layerTreeView->setNeedsAnimate(); 4303 m_layerTreeView->setNeedsAnimate();
4304 return; 4304 return;
4305 } 4305 }
4306 if (m_client) 4306 if (m_client)
4307 m_client->scheduleAnimation(); 4307 m_client->scheduleAnimation();
4308 } 4308 }
4309 4309
4310 void WebViewImpl::setCompositorAnimationTimeline(WebCompositorAnimationTimeline* timeline)
4311 {
4312 if (m_layerTreeView)
4313 m_layerTreeView->setCompositorAnimationTimeline(timeline);
4314 }
4315
4310 void WebViewImpl::initializeLayerTreeView() 4316 void WebViewImpl::initializeLayerTreeView()
4311 { 4317 {
4312 if (m_client) { 4318 if (m_client) {
4313 m_client->initializeLayerTreeView(); 4319 m_client->initializeLayerTreeView();
4314 m_layerTreeView = m_client->layerTreeView(); 4320 m_layerTreeView = m_client->layerTreeView();
4315 } 4321 }
4316 4322
4317 m_page->settings().setAcceleratedCompositingEnabled(m_layerTreeView != 0); 4323 m_page->settings().setAcceleratedCompositingEnabled(m_layerTreeView != 0);
4318 4324
4319 // FIXME: only unittests, click to play, Android priting, and printing (for headers and footers) 4325 // FIXME: only unittests, click to play, Android priting, and printing (for headers and footers)
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
4615 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width 4621 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width
4616 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1); 4622 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1);
4617 } 4623 }
4618 4624
4619 void WebViewImpl::forceNextWebGLContextCreationToFail() 4625 void WebViewImpl::forceNextWebGLContextCreationToFail()
4620 { 4626 {
4621 WebGLRenderingContext::forceNextWebGLContextCreationToFail(); 4627 WebGLRenderingContext::forceNextWebGLContextCreationToFail();
4622 } 4628 }
4623 4629
4624 } // namespace blink 4630 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698