Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: ui/compositor/compositor.cc

Issue 13674006: cc: Use refresh_rate from LayerTreeSettings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Speed up all the tests. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/trees/thread_proxy.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cc/trees/thread_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698