| 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 "CCLayerTreeHostImpl.h" | 7 #include "CCLayerTreeHostImpl.h" |
| 8 | 8 |
| 9 #include "CCAppendQuadsData.h" | 9 #include "CCAppendQuadsData.h" |
| 10 #include "CCDamageTracker.h" | 10 #include "CCDamageTracker.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "CCScrollbarLayerImpl.h" | 27 #include "CCScrollbarLayerImpl.h" |
| 28 #include "CCSettings.h" | 28 #include "CCSettings.h" |
| 29 #include "CCSingleThreadProxy.h" | 29 #include "CCSingleThreadProxy.h" |
| 30 #include "TraceEvent.h" | 30 #include "TraceEvent.h" |
| 31 #include <wtf/CurrentTime.h> | 31 #include <wtf/CurrentTime.h> |
| 32 | 32 |
| 33 using WebKit::WebTransformationMatrix; | 33 using WebKit::WebTransformationMatrix; |
| 34 | 34 |
| 35 namespace { | 35 namespace { |
| 36 | 36 |
| 37 void didVisibilityChange(WebCore::CCLayerTreeHostImpl* id, bool visible) | 37 void didVisibilityChange(cc::CCLayerTreeHostImpl* id, bool visible) |
| 38 { | 38 { |
| 39 if (visible) { | 39 if (visible) { |
| 40 TRACE_EVENT_ASYNC_BEGIN1("webkit", "CCLayerTreeHostImpl::setVisible", id
, "CCLayerTreeHostImpl", id); | 40 TRACE_EVENT_ASYNC_BEGIN1("webkit", "CCLayerTreeHostImpl::setVisible", id
, "CCLayerTreeHostImpl", id); |
| 41 return; | 41 return; |
| 42 } | 42 } |
| 43 | 43 |
| 44 TRACE_EVENT_ASYNC_END0("webkit", "CCLayerTreeHostImpl::setVisible", id); | 44 TRACE_EVENT_ASYNC_END0("webkit", "CCLayerTreeHostImpl::setVisible", id); |
| 45 } | 45 } |
| 46 | 46 |
| 47 } // namespace | 47 } // namespace |
| 48 | 48 |
| 49 namespace WebCore { | 49 namespace cc { |
| 50 | 50 |
| 51 class CCLayerTreeHostImplTimeSourceAdapter : public CCTimeSourceClient { | 51 class CCLayerTreeHostImplTimeSourceAdapter : public CCTimeSourceClient { |
| 52 WTF_MAKE_NONCOPYABLE(CCLayerTreeHostImplTimeSourceAdapter); | 52 WTF_MAKE_NONCOPYABLE(CCLayerTreeHostImplTimeSourceAdapter); |
| 53 public: | 53 public: |
| 54 static PassOwnPtr<CCLayerTreeHostImplTimeSourceAdapter> create(CCLayerTreeHo
stImpl* layerTreeHostImpl, PassRefPtr<CCDelayBasedTimeSource> timeSource) | 54 static PassOwnPtr<CCLayerTreeHostImplTimeSourceAdapter> create(CCLayerTreeHo
stImpl* layerTreeHostImpl, PassRefPtr<CCDelayBasedTimeSource> timeSource) |
| 55 { | 55 { |
| 56 return adoptPtr(new CCLayerTreeHostImplTimeSourceAdapter(layerTreeHostIm
pl, timeSource)); | 56 return adoptPtr(new CCLayerTreeHostImplTimeSourceAdapter(layerTreeHostIm
pl, timeSource)); |
| 57 } | 57 } |
| 58 virtual ~CCLayerTreeHostImplTimeSourceAdapter() | 58 virtual ~CCLayerTreeHostImplTimeSourceAdapter() |
| 59 { | 59 { |
| (...skipping 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1262 return; | 1262 return; |
| 1263 | 1263 |
| 1264 CCScrollbarAnimationController* scrollbarController = layer->scrollbarAnimat
ionController(); | 1264 CCScrollbarAnimationController* scrollbarController = layer->scrollbarAnimat
ionController(); |
| 1265 if (scrollbarController && scrollbarController->animate(monotonicTime)) | 1265 if (scrollbarController && scrollbarController->animate(monotonicTime)) |
| 1266 m_client->setNeedsRedrawOnImplThread(); | 1266 m_client->setNeedsRedrawOnImplThread(); |
| 1267 | 1267 |
| 1268 for (size_t i = 0; i < layer->children().size(); ++i) | 1268 for (size_t i = 0; i < layer->children().size(); ++i) |
| 1269 animateScrollbarsRecursive(layer->children()[i].get(), monotonicTime); | 1269 animateScrollbarsRecursive(layer->children()[i].get(), monotonicTime); |
| 1270 } | 1270 } |
| 1271 | 1271 |
| 1272 } // namespace WebCore | 1272 } // namespace cc |
| OLD | NEW |