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" |
(...skipping 11 matching lines...) Expand all Loading... |
22 using namespace WTF; | 22 using namespace WTF; |
23 | 23 |
24 using WebKit::WebSharedGraphicsContext3D; | 24 using WebKit::WebSharedGraphicsContext3D; |
25 namespace { | 25 namespace { |
26 | 26 |
27 // Measured in seconds. | 27 // Measured in seconds. |
28 static const double contextRecreationTickRate = 0.03; | 28 static const double contextRecreationTickRate = 0.03; |
29 | 29 |
30 } // anonymous namespace | 30 } // anonymous namespace |
31 | 31 |
32 namespace WebCore { | 32 namespace cc { |
33 | 33 |
34 namespace { | 34 namespace { |
35 | 35 |
36 // Type of texture uploader to use for texture updates. | 36 // Type of texture uploader to use for texture updates. |
37 static TextureUploaderOption textureUploader = ThrottledUploader; | 37 static TextureUploaderOption textureUploader = ThrottledUploader; |
38 | 38 |
39 } // anonymous namespace | 39 } // anonymous namespace |
40 | 40 |
41 PassOwnPtr<CCProxy> CCThreadProxy::create(CCLayerTreeHost* layerTreeHost) | 41 PassOwnPtr<CCProxy> CCThreadProxy::create(CCLayerTreeHost* layerTreeHost) |
42 { | 42 { |
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
912 completion->signal(); | 912 completion->signal(); |
913 } | 913 } |
914 | 914 |
915 void CCThreadProxy::implSideRenderingStatsOnImplThread(CCCompletionEvent* comple
tion, CCRenderingStats* stats) | 915 void CCThreadProxy::implSideRenderingStatsOnImplThread(CCCompletionEvent* comple
tion, CCRenderingStats* stats) |
916 { | 916 { |
917 ASSERT(isImplThread()); | 917 ASSERT(isImplThread()); |
918 m_layerTreeHostImpl->renderingStats(*stats); | 918 m_layerTreeHostImpl->renderingStats(*stats); |
919 completion->signal(); | 919 completion->signal(); |
920 } | 920 } |
921 | 921 |
922 } // namespace WebCore | 922 } // namespace cc |
OLD | NEW |