summaryrefslogtreecommitdiffstats
path: root/cc/scheduler/scheduler_state_machine.cc
diff options
context:
space:
mode:
authorreveman@google.com <reveman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-17 01:40:30 +0000
committerreveman@google.com <reveman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-17 01:40:30 +0000
commit6820d79c2f8a865afdd48e51ea67691ebb7db816 (patch)
tree0fe808bc93d4faf22ae75c763cd8e55c6e032f35 /cc/scheduler/scheduler_state_machine.cc
parent875b7f7f612335372e4dfc0493d18d5df3b5c45a (diff)
downloadchromium_src-6820d79c2f8a865afdd48e51ea67691ebb7db816.zip
chromium_src-6820d79c2f8a865afdd48e51ea67691ebb7db816.tar.gz
chromium_src-6820d79c2f8a865afdd48e51ea67691ebb7db816.tar.bz2
Revert 206020 "cc: Emulate BeginFrame in OutputSurfaces that don..."
This is causing pre-rendered pages to not load on android: crbug.com/249806 > cc: Emulate BeginFrame in OutputSurfaces that don't support it natively > > This includes two small fixes for the original version of this > patch that broke software compositing and WebView. > > This will allow us to avoid having two different code paths > in the Scheduler. It also allows us to more easily remove the > VSyncTimeSource and FrameRateController from the Scheduler. > > This patch instantiates the FrameRateController inside of > OutputSurface for now, but the FrameRateController could be > removed in future patches. > > BUG=245920 > BUG=243497 > TBR=nduca@chromium.org,sievers@chromium.org,kbr@chromium.org > > Review URL: https://chromiumcodereview.appspot.com/16833003 TBR=brianderson@chromium.org Review URL: https://codereview.chromium.org/17204002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206655 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/scheduler/scheduler_state_machine.cc')
-rw-r--r--cc/scheduler/scheduler_state_machine.cc15
1 files changed, 0 insertions, 15 deletions
diff --git a/cc/scheduler/scheduler_state_machine.cc b/cc/scheduler/scheduler_state_machine.cc
index fda6e6b..76f7bb1 100644
--- a/cc/scheduler/scheduler_state_machine.cc
+++ b/cc/scheduler/scheduler_state_machine.cc
@@ -4,7 +4,6 @@
#include "cc/scheduler/scheduler_state_machine.h"
-#include "base/format_macros.h"
#include "base/logging.h"
#include "base/strings/stringprintf.h"
@@ -13,7 +12,6 @@ namespace cc {
SchedulerStateMachine::SchedulerStateMachine(const SchedulerSettings& settings)
: settings_(settings),
commit_state_(COMMIT_STATE_IDLE),
- commit_count_(0),
current_frame_number_(0),
last_frame_number_where_draw_was_called_(-1),
last_frame_number_where_tree_activation_attempted_(-1),
@@ -44,7 +42,6 @@ std::string SchedulerStateMachine::ToString() {
"settings_.impl_side_painting = %d; ",
settings_.impl_side_painting);
base::StringAppendF(&str, "commit_state_ = %d; ", commit_state_);
- base::StringAppendF(&str, "commit_count_ = %d; ", commit_count_);
base::StringAppendF(
&str, "current_frame_number_ = %d; ", current_frame_number_);
base::StringAppendF(&str,
@@ -83,8 +80,6 @@ std::string SchedulerStateMachine::ToString() {
main_thread_needs_layer_textures_);
base::StringAppendF(&str, "inside_begin_frame_ = %d; ",
inside_begin_frame_);
- base::StringAppendF(&str, "last_frame_time_ = %"PRId64"; ",
- (last_frame_time_ - base::TimeTicks()).InMilliseconds());
base::StringAppendF(&str, "visible_ = %d; ", visible_);
base::StringAppendF(&str, "can_start_ = %d; ", can_start_);
base::StringAppendF(&str, "can_draw_ = %d; ", can_draw_);
@@ -278,7 +273,6 @@ void SchedulerStateMachine::UpdateState(Action action) {
return;
case ACTION_COMMIT:
- commit_count_++;
if (expect_immediate_begin_frame_for_main_thread_)
commit_state_ = COMMIT_STATE_WAITING_FOR_FIRST_FORCED_DRAW;
else
@@ -338,11 +332,6 @@ void SchedulerStateMachine::SetMainThreadNeedsLayerTextures() {
}
bool SchedulerStateMachine::BeginFrameNeededByImplThread() const {
- // We should proactively request a BeginFrame if a commit is pending.
- if (needs_commit_ || needs_forced_commit_ ||
- commit_state_ != COMMIT_STATE_IDLE)
- return true;
-
// If we have a pending tree, need to keep getting notifications until
// the tree is ready to be swapped.
if (has_pending_tree_)
@@ -366,10 +355,6 @@ void SchedulerStateMachine::DidEnterBeginFrame() {
inside_begin_frame_ = true;
}
-void SchedulerStateMachine::SetFrameTime(base::TimeTicks frame_time) {
- last_frame_time_ = frame_time;
-}
-
void SchedulerStateMachine::DidLeaveBeginFrame() {
current_frame_number_++;
inside_begin_frame_ = false;