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

Side by Side Diff: cc/trees/thread_proxy.cc

Issue 24649002: Clean up a few more unused globals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: thestig comment Created 7 years, 2 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
OLDNEW
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 "cc/trees/thread_proxy.h" 5 #include "cc/trees/thread_proxy.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/debug/trace_event.h" 11 #include "base/debug/trace_event.h"
12 #include "base/metrics/histogram.h" 12 #include "base/metrics/histogram.h"
13 #include "cc/input/input_handler.h" 13 #include "cc/input/input_handler.h"
14 #include "cc/output/context_provider.h" 14 #include "cc/output/context_provider.h"
15 #include "cc/output/output_surface.h" 15 #include "cc/output/output_surface.h"
16 #include "cc/quads/draw_quad.h" 16 #include "cc/quads/draw_quad.h"
17 #include "cc/resources/prioritized_resource_manager.h" 17 #include "cc/resources/prioritized_resource_manager.h"
18 #include "cc/scheduler/delay_based_time_source.h" 18 #include "cc/scheduler/delay_based_time_source.h"
19 #include "cc/scheduler/frame_rate_controller.h" 19 #include "cc/scheduler/frame_rate_controller.h"
20 #include "cc/scheduler/scheduler.h" 20 #include "cc/scheduler/scheduler.h"
21 #include "cc/trees/blocking_task_runner.h" 21 #include "cc/trees/blocking_task_runner.h"
22 #include "cc/trees/layer_tree_host.h" 22 #include "cc/trees/layer_tree_host.h"
23 #include "cc/trees/layer_tree_impl.h" 23 #include "cc/trees/layer_tree_impl.h"
24 24
25 namespace {
jamesr 2013/09/25 21:34:40 why remove the namespace? now the constants are in
Nico 2013/09/25 21:36:27 const has implicit internal linkage. The namespace
26
27 // Measured in seconds.
28 const double kContextRecreationTickRate = 0.03;
29
30 // Measured in seconds. 25 // Measured in seconds.
31 const double kSmoothnessTakesPriorityExpirationDelay = 0.25; 26 const double kSmoothnessTakesPriorityExpirationDelay = 0.25;
32 27
33 const size_t kDurationHistorySize = 60; 28 const size_t kDurationHistorySize = 60;
34 const double kCommitAndActivationDurationEstimationPercentile = 50.0; 29 const double kCommitAndActivationDurationEstimationPercentile = 50.0;
35 const double kDrawDurationEstimationPercentile = 100.0; 30 const double kDrawDurationEstimationPercentile = 100.0;
36 const int kDrawDurationEstimatePaddingInMicroseconds = 0; 31 const int kDrawDurationEstimatePaddingInMicroseconds = 0;
37 32
38 } // namespace
39
40 namespace cc { 33 namespace cc {
41 34
42 struct ThreadProxy::ReadbackRequest { 35 struct ThreadProxy::ReadbackRequest {
43 CompletionEvent completion; 36 CompletionEvent completion;
44 bool success; 37 bool success;
45 void* pixels; 38 void* pixels;
46 gfx::Rect rect; 39 gfx::Rect rect;
47 }; 40 };
48 41
49 struct ThreadProxy::CommitPendingRequest { 42 struct ThreadProxy::CommitPendingRequest {
(...skipping 1534 matching lines...) Expand 10 before | Expand all | Expand 10 after
1584 completion_event_for_commit_held_on_tree_activation_ = NULL; 1577 completion_event_for_commit_held_on_tree_activation_ = NULL;
1585 } 1578 }
1586 1579
1587 UpdateBackgroundAnimateTicking(); 1580 UpdateBackgroundAnimateTicking();
1588 1581
1589 commit_to_activate_duration_history_.InsertSample( 1582 commit_to_activate_duration_history_.InsertSample(
1590 base::TimeTicks::HighResNow() - commit_complete_time_); 1583 base::TimeTicks::HighResNow() - commit_complete_time_);
1591 } 1584 }
1592 1585
1593 } // namespace cc 1586 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/about_flags.cc » ('j') | chrome/renderer/media/chrome_key_systems.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698