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

Side by Side Diff: Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp

Issue 9950004: Merge 112446 - [chromium] Scheduler should not tell FrameRateController to begin a frame when we do… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 8 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 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 const LayerRendererCapabilities& CCLayerTreeHostImpl::layerRendererCapabilities( ) const 415 const LayerRendererCapabilities& CCLayerTreeHostImpl::layerRendererCapabilities( ) const
416 { 416 {
417 return m_layerRenderer->capabilities(); 417 return m_layerRenderer->capabilities();
418 } 418 }
419 419
420 TextureAllocator* CCLayerTreeHostImpl::contentsTextureAllocator() const 420 TextureAllocator* CCLayerTreeHostImpl::contentsTextureAllocator() const
421 { 421 {
422 return m_layerRenderer ? m_layerRenderer->contentsTextureAllocator() : 0; 422 return m_layerRenderer ? m_layerRenderer->contentsTextureAllocator() : 0;
423 } 423 }
424 424
425 void CCLayerTreeHostImpl::swapBuffers() 425 bool CCLayerTreeHostImpl::swapBuffers()
426 { 426 {
427 ASSERT(m_layerRenderer); 427 ASSERT(m_layerRenderer);
428 m_layerRenderer->swapBuffers(enclosingIntRect(m_rootDamageRect)); 428 return m_layerRenderer->swapBuffers(enclosingIntRect(m_rootDamageRect));
429 } 429 }
430 430
431 void CCLayerTreeHostImpl::didLoseContext() 431 void CCLayerTreeHostImpl::didLoseContext()
432 { 432 {
433 m_client->didLoseContextOnImplThread(); 433 m_client->didLoseContextOnImplThread();
434 } 434 }
435 435
436 void CCLayerTreeHostImpl::onSwapBuffersComplete() 436 void CCLayerTreeHostImpl::onSwapBuffersComplete()
437 { 437 {
438 m_client->onSwapBuffersCompleteOnImplThread(); 438 m_client->onSwapBuffersCompleteOnImplThread();
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 return; 826 return;
827 827
828 bool isContinuing = m_activeGestureAnimation->animate(monotonicTime); 828 bool isContinuing = m_activeGestureAnimation->animate(monotonicTime);
829 if (isContinuing) 829 if (isContinuing)
830 m_client->setNeedsRedrawOnImplThread(); 830 m_client->setNeedsRedrawOnImplThread();
831 else 831 else
832 m_activeGestureAnimation.clear(); 832 m_activeGestureAnimation.clear();
833 } 833 }
834 834
835 } // namespace WebCore 835 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698