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

Side by Side Diff: Source/WebCore/rendering/RenderLayerCompositor.cpp

Issue 8399043: Merge 98112 - Fix Windows build. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/912/
Patch Set: Created 9 years, 1 month 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/WebCore/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) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Apple 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 m_updateCompositingLayersTimer.startOneShot(0); 237 m_updateCompositingLayersTimer.startOneShot(0);
238 } 238 }
239 239
240 void RenderLayerCompositor::updateCompositingLayersTimerFired(Timer<RenderLayerC ompositor>*) 240 void RenderLayerCompositor::updateCompositingLayersTimerFired(Timer<RenderLayerC ompositor>*)
241 { 241 {
242 updateCompositingLayers(); 242 updateCompositingLayers();
243 } 243 }
244 244
245 bool RenderLayerCompositor::hasAnyAdditionalCompositedLayers(const RenderLayer* rootLayer) const 245 bool RenderLayerCompositor::hasAnyAdditionalCompositedLayers(const RenderLayer* rootLayer) const
246 { 246 {
247 return m_compositedLayerCount > rootLayer->isComposited(); 247 return m_compositedLayerCount > (rootLayer->isComposited() ? 1 : 0);
248 } 248 }
249 249
250 void RenderLayerCompositor::updateCompositingLayers(CompositingUpdateType update Type, RenderLayer* updateRoot) 250 void RenderLayerCompositor::updateCompositingLayers(CompositingUpdateType update Type, RenderLayer* updateRoot)
251 { 251 {
252 m_updateCompositingLayersTimer.stop(); 252 m_updateCompositingLayersTimer.stop();
253 253
254 // Compositing layers will be updated in Document::implicitClose() if suppre ssed here. 254 // Compositing layers will be updated in Document::implicitClose() if suppre ssed here.
255 if (!m_renderView->document()->visualUpdatesAllowed()) 255 if (!m_renderView->document()->visualUpdatesAllowed())
256 return; 256 return;
257 257
(...skipping 1700 matching lines...) Expand 10 before | Expand all | Expand 10 after
1958 if (!viewLayer->isComposited()) 1958 if (!viewLayer->isComposited())
1959 return; 1959 return;
1960 1960
1961 if (GraphicsLayer* rootLayer = viewLayer->backing()->graphicsLayer()) 1961 if (GraphicsLayer* rootLayer = viewLayer->backing()->graphicsLayer())
1962 rootLayer->noteDeviceOrPageScaleFactorChangedIncludingDescendants(); 1962 rootLayer->noteDeviceOrPageScaleFactorChangedIncludingDescendants();
1963 } 1963 }
1964 1964
1965 } // namespace WebCore 1965 } // namespace WebCore
1966 1966
1967 #endif // USE(ACCELERATED_COMPOSITING) 1967 #endif // USE(ACCELERATED_COMPOSITING)
OLDNEW
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698