| 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 "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| 11 #include "cc/append_quads_data.h" | 11 #include "cc/append_quads_data.h" |
| 12 #include "cc/damage_tracker.h" | 12 #include "cc/damage_tracker.h" |
| 13 #include "cc/debug_rect_history.h" | 13 #include "cc/debug_rect_history.h" |
| 14 #include "cc/delay_based_time_source.h" | 14 #include "cc/delay_based_time_source.h" |
| 15 #include "cc/font_atlas.h" | 15 #include "cc/font_atlas.h" |
| 16 #include "cc/frame_rate_counter.h" | 16 #include "cc/frame_rate_counter.h" |
| 17 #include "cc/geometry.h" | 17 #include "cc/geometry.h" |
| 18 #include "cc/gl_renderer.h" | 18 #include "cc/gl_renderer.h" |
| 19 #include "cc/heads_up_display_layer_impl.h" | 19 #include "cc/heads_up_display_layer_impl.h" |
| 20 #include "cc/layer_iterator.h" | 20 #include "cc/layer_iterator.h" |
| 21 #include "cc/layer_tree_host.h" | 21 #include "cc/layer_tree_host.h" |
| 22 #include "cc/layer_tree_host_common.h" | 22 #include "cc/layer_tree_host_common.h" |
| 23 #include "cc/math_util.h" | 23 #include "cc/math_util.h" |
| 24 #include "cc/overdraw_metrics.h" | 24 #include "cc/overdraw_metrics.h" |
| 25 #include "cc/page_scale_animation.h" | 25 #include "cc/page_scale_animation.h" |
| 26 #include "cc/prioritized_texture_manager.h" | 26 #include "cc/prioritized_resource_manager.h" |
| 27 #include "cc/render_pass_draw_quad.h" | 27 #include "cc/render_pass_draw_quad.h" |
| 28 #include "cc/rendering_stats.h" | 28 #include "cc/rendering_stats.h" |
| 29 #include "cc/scrollbar_animation_controller.h" | 29 #include "cc/scrollbar_animation_controller.h" |
| 30 #include "cc/scrollbar_layer_impl.h" | 30 #include "cc/scrollbar_layer_impl.h" |
| 31 #include "cc/settings.h" | 31 #include "cc/settings.h" |
| 32 #include "cc/single_thread_proxy.h" | 32 #include "cc/single_thread_proxy.h" |
| 33 #include "cc/software_renderer.h" | 33 #include "cc/software_renderer.h" |
| 34 #include "cc/texture_uploader.h" | 34 #include "cc/texture_uploader.h" |
| 35 #include "ui/gfx/size_conversions.h" | 35 #include "ui/gfx/size_conversions.h" |
| 36 #include "ui/gfx/vector2d_conversions.h" | 36 #include "ui/gfx/vector2d_conversions.h" |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 , m_sourceFrameNumber(-1) | 209 , m_sourceFrameNumber(-1) |
| 210 , m_rootScrollLayerImpl(0) | 210 , m_rootScrollLayerImpl(0) |
| 211 , m_currentlyScrollingLayerImpl(0) | 211 , m_currentlyScrollingLayerImpl(0) |
| 212 , m_hudLayerImpl(0) | 212 , m_hudLayerImpl(0) |
| 213 , m_scrollingLayerIdFromPreviousTree(-1) | 213 , m_scrollingLayerIdFromPreviousTree(-1) |
| 214 , m_scrollDeltaIsInViewportSpace(false) | 214 , m_scrollDeltaIsInViewportSpace(false) |
| 215 , m_settings(settings) | 215 , m_settings(settings) |
| 216 , m_deviceScaleFactor(1) | 216 , m_deviceScaleFactor(1) |
| 217 , m_visible(true) | 217 , m_visible(true) |
| 218 , m_contentsTexturesPurged(false) | 218 , m_contentsTexturesPurged(false) |
| 219 , m_managedMemoryPolicy(PrioritizedTextureManager::defaultMemoryAllocationLi
mit(), | 219 , m_managedMemoryPolicy(PrioritizedResourceManager::defaultMemoryAllocationL
imit(), |
| 220 PriorityCalculator::allowEverythingCutoff(), | 220 PriorityCalculator::allowEverythingCutoff(), |
| 221 0, | 221 0, |
| 222 PriorityCalculator::allowNothingCutoff()) | 222 PriorityCalculator::allowNothingCutoff()) |
| 223 , m_backgroundColor(0) | 223 , m_backgroundColor(0) |
| 224 , m_hasTransparentBackground(false) | 224 , m_hasTransparentBackground(false) |
| 225 , m_needsAnimateLayers(false) | 225 , m_needsAnimateLayers(false) |
| 226 , m_pinchGestureActive(false) | 226 , m_pinchGestureActive(false) |
| 227 , m_fpsCounter(FrameRateCounter::create()) | 227 , m_fpsCounter(FrameRateCounter::create()) |
| 228 , m_debugRectHistory(DebugRectHistory::create()) | 228 , m_debugRectHistory(DebugRectHistory::create()) |
| 229 , m_numImplThreadScrolls(0) | 229 , m_numImplThreadScrolls(0) |
| (...skipping 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1473 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio
nController(); | 1473 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio
nController(); |
| 1474 double monotonicTime = (time - base::TimeTicks()).InSecondsF(); | 1474 double monotonicTime = (time - base::TimeTicks()).InSecondsF(); |
| 1475 if (scrollbarController && scrollbarController->animate(monotonicTime)) | 1475 if (scrollbarController && scrollbarController->animate(monotonicTime)) |
| 1476 m_client->setNeedsRedrawOnImplThread(); | 1476 m_client->setNeedsRedrawOnImplThread(); |
| 1477 | 1477 |
| 1478 for (size_t i = 0; i < layer->children().size(); ++i) | 1478 for (size_t i = 0; i < layer->children().size(); ++i) |
| 1479 animateScrollbarsRecursive(layer->children()[i], time); | 1479 animateScrollbarsRecursive(layer->children()[i], time); |
| 1480 } | 1480 } |
| 1481 | 1481 |
| 1482 } // namespace cc | 1482 } // namespace cc |
| OLD | NEW |