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

Side by Side Diff: Source/WebKit/chromium/src/WebViewImpl.cpp

Issue 9951001: Merge 112417 - [chromium] Compositor visibility setting must be updated even if not actively compos… (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
« no previous file with comments | « Source/WebKit/chromium/ChangeLog ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3450 matching lines...) Expand 10 before | Expand all | Expand 10 after
3461 return; 3461 return;
3462 3462
3463 #if ENABLE(PAGE_VISIBILITY_API) 3463 #if ENABLE(PAGE_VISIBILITY_API)
3464 ASSERT(visibilityState == WebPageVisibilityStateVisible 3464 ASSERT(visibilityState == WebPageVisibilityStateVisible
3465 || visibilityState == WebPageVisibilityStateHidden 3465 || visibilityState == WebPageVisibilityStateHidden
3466 || visibilityState == WebPageVisibilityStatePrerender); 3466 || visibilityState == WebPageVisibilityStatePrerender);
3467 m_page->setVisibilityState(static_cast<PageVisibilityState>(static_cast<int> (visibilityState)), isInitialState); 3467 m_page->setVisibilityState(static_cast<PageVisibilityState>(static_cast<int> (visibilityState)), isInitialState);
3468 #endif 3468 #endif
3469 3469
3470 #if USE(ACCELERATED_COMPOSITING) 3470 #if USE(ACCELERATED_COMPOSITING)
3471 if (isAcceleratedCompositingActive()) { 3471 if (!m_layerTreeView.isNull()) {
3472 bool visible = visibilityState == WebPageVisibilityStateVisible; 3472 bool visible = visibilityState == WebPageVisibilityStateVisible;
3473 if (!visible) 3473 if (!visible && isAcceleratedCompositingActive())
3474 m_nonCompositedContentHost->protectVisibleTileTextures(); 3474 m_nonCompositedContentHost->protectVisibleTileTextures();
3475 m_layerTreeView.setVisible(visible); 3475 m_layerTreeView.setVisible(visible);
3476 } 3476 }
3477 #endif 3477 #endif
3478 } 3478 }
3479 3479
3480 #if ENABLE(POINTER_LOCK) 3480 #if ENABLE(POINTER_LOCK)
3481 bool WebViewImpl::requestPointerLock() 3481 bool WebViewImpl::requestPointerLock()
3482 { 3482 {
3483 return m_client && m_client->requestPointerLock(); 3483 return m_client && m_client->requestPointerLock();
(...skipping 30 matching lines...) Expand all
3514 const WebMouseEvent& mouseEvent = static_cast<const WebMouseEvent&>(event); 3514 const WebMouseEvent& mouseEvent = static_cast<const WebMouseEvent&>(event);
3515 3515
3516 if (page()) 3516 if (page())
3517 page()->pointerLockController()->dispatchLockedMouseEvent( 3517 page()->pointerLockController()->dispatchLockedMouseEvent(
3518 PlatformMouseEventBuilder(mainFrameImpl()->frameView(), mouseEvent), 3518 PlatformMouseEventBuilder(mainFrameImpl()->frameView(), mouseEvent),
3519 eventType); 3519 eventType);
3520 } 3520 }
3521 #endif 3521 #endif
3522 3522
3523 } // namespace WebKit 3523 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/ChangeLog ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698