OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/compositor/compositor.h" | 5 #include "ui/compositor/compositor.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 #include "webkit/gpu/grcontext_for_webgraphicscontext3d.h" | 34 #include "webkit/gpu/grcontext_for_webgraphicscontext3d.h" |
35 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" | 35 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" |
36 | 36 |
37 #if defined(OS_CHROMEOS) | 37 #if defined(OS_CHROMEOS) |
38 #include "base/chromeos/chromeos_version.h" | 38 #include "base/chromeos/chromeos_version.h" |
39 #endif | 39 #endif |
40 | 40 |
41 namespace { | 41 namespace { |
42 | 42 |
43 const double kDefaultRefreshRate = 60.0; | 43 const double kDefaultRefreshRate = 60.0; |
44 const double kTestRefreshRate = 100.0; | 44 const double kTestRefreshRate = 200.0; |
45 | 45 |
46 enum SwapType { | 46 enum SwapType { |
47 DRAW_SWAP, | 47 DRAW_SWAP, |
48 READPIXELS_SWAP, | 48 READPIXELS_SWAP, |
49 }; | 49 }; |
50 | 50 |
51 base::Thread* g_compositor_thread = NULL; | 51 base::Thread* g_compositor_thread = NULL; |
52 | 52 |
53 bool g_test_compositor_enabled = false; | 53 bool g_test_compositor_enabled = false; |
54 | 54 |
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 COMPOSITOR_EXPORT void DisableTestCompositor() { | 729 COMPOSITOR_EXPORT void DisableTestCompositor() { |
730 ResetImplicitFactory(); | 730 ResetImplicitFactory(); |
731 g_test_compositor_enabled = false; | 731 g_test_compositor_enabled = false; |
732 } | 732 } |
733 | 733 |
734 COMPOSITOR_EXPORT bool IsTestCompositorEnabled() { | 734 COMPOSITOR_EXPORT bool IsTestCompositorEnabled() { |
735 return g_test_compositor_enabled; | 735 return g_test_compositor_enabled; |
736 } | 736 } |
737 | 737 |
738 } // namespace ui | 738 } // namespace ui |
OLD | NEW |