summaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorsimonhong@chromium.org <simonhong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-01 16:42:30 +0000
committersimonhong@chromium.org <simonhong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-01 16:42:30 +0000
commit4a7823e7e270baa2216cc8b7617980400c0ff1ed (patch)
treed64b491fd06cdfc5c00e19a513b36a625281f5d7 /cc
parentd844c286076ea4c7ba995d8516049fe954ceadf4 (diff)
downloadchromium_src-4a7823e7e270baa2216cc8b7617980400c0ff1ed.zip
chromium_src-4a7823e7e270baa2216cc8b7617980400c0ff1ed.tar.gz
chromium_src-4a7823e7e270baa2216cc8b7617980400c0ff1ed.tar.bz2
cc: Remove unused member functions and vars in SchedulerStateMachine
Remove the following: * HasScheduledManageTilesThisFrame() * draw_if_possible_failed_ R=brianderson@chromium.org BUG=NONE TEST=NONE(No functional change) Review URL: https://codereview.chromium.org/262583002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@267535 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc')
-rw-r--r--cc/scheduler/scheduler_state_machine.cc6
-rw-r--r--cc/scheduler/scheduler_state_machine.h2
2 files changed, 0 insertions, 8 deletions
diff --git a/cc/scheduler/scheduler_state_machine.cc b/cc/scheduler/scheduler_state_machine.cc
index 0ddaa30..44ab643 100644
--- a/cc/scheduler/scheduler_state_machine.cc
+++ b/cc/scheduler/scheduler_state_machine.cc
@@ -42,7 +42,6 @@ SchedulerStateMachine::SchedulerStateMachine(const SchedulerSettings& settings)
has_pending_tree_(false),
pending_tree_is_ready_for_activation_(false),
active_tree_needs_first_draw_(false),
- draw_if_possible_failed_(false),
did_create_and_initialize_first_output_surface_(false),
smoothness_takes_priority_(false),
skip_next_begin_main_frame_to_reduce_latency_(false),
@@ -251,7 +250,6 @@ scoped_ptr<base::Value> SchedulerStateMachine::AsValue() const {
pending_tree_is_ready_for_activation_);
minor_state->SetBoolean("active_tree_needs_first_draw",
active_tree_needs_first_draw_);
- minor_state->SetBoolean("draw_if_possible_failed", draw_if_possible_failed_);
minor_state->SetBoolean("did_create_and_initialize_first_output_surface",
did_create_and_initialize_first_output_surface_);
minor_state->SetBoolean("smoothness_takes_priority",
@@ -727,9 +725,6 @@ void SchedulerStateMachine::UpdateStateOnCommit(bool commit_was_aborted) {
// This post-commit work is common to both completed and aborted commits.
pending_tree_is_ready_for_activation_ = false;
- if (draw_if_possible_failed_)
- last_frame_number_swap_performed_ = -1;
-
if (continuous_painting_)
needs_commit_ = true;
}
@@ -793,7 +788,6 @@ void SchedulerStateMachine::UpdateStateOnDraw(bool did_request_swap) {
commit_state_ = COMMIT_STATE_IDLE;
needs_redraw_ = false;
- draw_if_possible_failed_ = false;
active_tree_needs_first_draw_ = false;
if (did_request_swap)
diff --git a/cc/scheduler/scheduler_state_machine.h b/cc/scheduler/scheduler_state_machine.h
index e7d05e6..ff032b6 100644
--- a/cc/scheduler/scheduler_state_machine.h
+++ b/cc/scheduler/scheduler_state_machine.h
@@ -270,7 +270,6 @@ class CC_EXPORT SchedulerStateMachine {
void AdvanceCurrentFrameNumber();
bool HasSentBeginMainFrameThisFrame() const;
- bool HasScheduledManageTilesThisFrame() const;
bool HasUpdatedVisibleTilesThisFrame() const;
bool HasSwappedThisFrame() const;
@@ -316,7 +315,6 @@ class CC_EXPORT SchedulerStateMachine {
bool has_pending_tree_;
bool pending_tree_is_ready_for_activation_;
bool active_tree_needs_first_draw_;
- bool draw_if_possible_failed_;
bool did_create_and_initialize_first_output_surface_;
bool smoothness_takes_priority_;
bool skip_next_begin_main_frame_to_reduce_latency_;