| 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 "CCThreadProxy.h" | 7 #include "CCThreadProxy.h" |
| 8 | 8 |
| 9 #include "CCDelayBasedTimeSource.h" | 9 #include "CCDelayBasedTimeSource.h" |
| 10 #include "CCDrawQuad.h" | 10 #include "CCDrawQuad.h" |
| 11 #include "CCFrameRateController.h" | 11 #include "CCFrameRateController.h" |
| 12 #include "CCGraphicsContext.h" | 12 #include "CCGraphicsContext.h" |
| 13 #include "CCInputHandler.h" | 13 #include "CCInputHandler.h" |
| 14 #include "CCLayerTreeHost.h" | 14 #include "CCLayerTreeHost.h" |
| 15 #include "CCScheduler.h" | 15 #include "CCScheduler.h" |
| 16 #include "CCScopedThreadProxy.h" | 16 #include "CCScopedThreadProxy.h" |
| 17 #include "CCTextureUpdateController.h" | 17 #include "CCTextureUpdateController.h" |
| 18 #include "CCThreadTask.h" | 18 #include "CCThreadTask.h" |
| 19 #include "TraceEvent.h" | 19 #include "TraceEvent.h" |
| 20 #include <public/WebSharedGraphicsContext3D.h> | 20 #include <public/WebSharedGraphicsContext3D.h> |
| 21 #include <wtf/CurrentTime.h> | 21 #include <wtf/CurrentTime.h> |
| 22 #include <wtf/MainThread.h> | |
| 23 | 22 |
| 24 using namespace WTF; | 23 using namespace WTF; |
| 25 | 24 |
| 26 using WebKit::WebSharedGraphicsContext3D; | 25 using WebKit::WebSharedGraphicsContext3D; |
| 27 namespace { | 26 namespace { |
| 28 | 27 |
| 29 // Measured in seconds. | 28 // Measured in seconds. |
| 30 static const double contextRecreationTickRate = 0.03; | 29 static const double contextRecreationTickRate = 0.03; |
| 31 | 30 |
| 32 } // anonymous namespace | 31 } // anonymous namespace |
| (...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 } | 910 } |
| 912 | 911 |
| 913 void CCThreadProxy::implSideRenderingStatsOnImplThread(CCCompletionEvent* comple
tion, CCRenderingStats* stats) | 912 void CCThreadProxy::implSideRenderingStatsOnImplThread(CCCompletionEvent* comple
tion, CCRenderingStats* stats) |
| 914 { | 913 { |
| 915 ASSERT(isImplThread()); | 914 ASSERT(isImplThread()); |
| 916 m_layerTreeHostImpl->renderingStats(*stats); | 915 m_layerTreeHostImpl->renderingStats(*stats); |
| 917 completion->signal(); | 916 completion->signal(); |
| 918 } | 917 } |
| 919 | 918 |
| 920 } // namespace WebCore | 919 } // namespace WebCore |
| OLD | NEW |