| OLD | NEW | 
|     1 // Copyright 2011 The Chromium Authors. All rights reserved. |     1 // Copyright 2011 The Chromium Authors. All rights reserved. | 
|     2 // Use of this source code is governed by a BSD-style license that can be |     2 // Use of this source code is governed by a BSD-style license that can be | 
|     3 // found in the LICENSE file. |     3 // found in the LICENSE file. | 
|     4  |     4  | 
|     5 #include "config.h" |     5 #include "config.h" | 
|     6  |     6  | 
|     7 #include "cc/layer_tree_host_impl.h" |     7 #include "cc/layer_tree_host_impl.h" | 
|     8  |     8  | 
|     9 #include "CCAppendQuadsData.h" |     9 #include "CCAppendQuadsData.h" | 
|    10 #include "CCDamageTracker.h" |    10 #include "CCDamageTracker.h" | 
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   331 void LayerTreeHostImpl::trackDamageForAllSurfaces(LayerImpl* rootDrawLayer, cons
      t LayerList& renderSurfaceLayerList) |   331 void LayerTreeHostImpl::trackDamageForAllSurfaces(LayerImpl* rootDrawLayer, cons
      t LayerList& renderSurfaceLayerList) | 
|   332 { |   332 { | 
|   333     // For now, we use damage tracking to compute a global scissor. To do this, 
      we must |   333     // For now, we use damage tracking to compute a global scissor. To do this, 
      we must | 
|   334     // compute all damage tracking before drawing anything, so that we know the 
      root |   334     // compute all damage tracking before drawing anything, so that we know the 
      root | 
|   335     // damage rect. The root damage rect is then used to scissor each surface. |   335     // damage rect. The root damage rect is then used to scissor each surface. | 
|   336  |   336  | 
|   337     for (int surfaceIndex = renderSurfaceLayerList.size() - 1; surfaceIndex >= 0
       ; --surfaceIndex) { |   337     for (int surfaceIndex = renderSurfaceLayerList.size() - 1; surfaceIndex >= 0
       ; --surfaceIndex) { | 
|   338         LayerImpl* renderSurfaceLayer = renderSurfaceLayerList[surfaceIndex]; |   338         LayerImpl* renderSurfaceLayer = renderSurfaceLayerList[surfaceIndex]; | 
|   339         RenderSurfaceImpl* renderSurface = renderSurfaceLayer->renderSurface(); |   339         RenderSurfaceImpl* renderSurface = renderSurfaceLayer->renderSurface(); | 
|   340         DCHECK(renderSurface); |   340         DCHECK(renderSurface); | 
|   341         renderSurface->damageTracker()->updateDamageTrackingState(renderSurface-
      >layerList(), renderSurfaceLayer->id(), renderSurface->surfacePropertyChangedOnl
      yFromDescendant(), renderSurface->contentRect(), renderSurfaceLayer->maskLayer()
      , renderSurfaceLayer->filters()); |   341         renderSurface->damageTracker()->updateDamageTrackingState(renderSurface-
      >layerList(), renderSurfaceLayer->id(), renderSurface->surfacePropertyChangedOnl
      yFromDescendant(), renderSurface->contentRect(), renderSurfaceLayer->maskLayer()
      , renderSurfaceLayer->filters(), renderSurfaceLayer->filter()); | 
|   342     } |   342     } | 
|   343 } |   343 } | 
|   344  |   344  | 
|   345 void LayerTreeHostImpl::updateRootScrollLayerImplTransform() |   345 void LayerTreeHostImpl::updateRootScrollLayerImplTransform() | 
|   346 { |   346 { | 
|   347     if (m_rootScrollLayerImpl) { |   347     if (m_rootScrollLayerImpl) { | 
|   348         m_rootScrollLayerImpl->setImplTransform(implTransform()); |   348         m_rootScrollLayerImpl->setImplTransform(implTransform()); | 
|   349     } |   349     } | 
|   350 } |   350 } | 
|   351  |   351  | 
| (...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1481  |  1481  | 
|  1482     ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio
      nController(); |  1482     ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio
      nController(); | 
|  1483     if (scrollbarController && scrollbarController->animate(monotonicTime)) |  1483     if (scrollbarController && scrollbarController->animate(monotonicTime)) | 
|  1484         m_client->setNeedsRedrawOnImplThread(); |  1484         m_client->setNeedsRedrawOnImplThread(); | 
|  1485  |  1485  | 
|  1486     for (size_t i = 0; i < layer->children().size(); ++i) |  1486     for (size_t i = 0; i < layer->children().size(); ++i) | 
|  1487         animateScrollbarsRecursive(layer->children()[i], monotonicTime); |  1487         animateScrollbarsRecursive(layer->children()[i], monotonicTime); | 
|  1488 } |  1488 } | 
|  1489  |  1489  | 
|  1490 }  // namespace cc |  1490 }  // namespace cc | 
| OLD | NEW |