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

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

Issue 221833009: cc: Move scheduling logic out of OutputSurface (Closed) Base URL: http://git.chromium.org/chromium/src.git@swapAck2Sched11
Patch Set: rebase; add comment about race Created 6 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
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 } 103 }
104 104
105 virtual void SetUp() OVERRIDE { 105 virtual void SetUp() OVERRIDE {
106 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); 106 CreateHostImpl(DefaultSettings(), CreateOutputSurface());
107 } 107 }
108 108
109 virtual void TearDown() OVERRIDE {} 109 virtual void TearDown() OVERRIDE {}
110 110
111 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE {} 111 virtual void UpdateRendererCapabilitiesOnImplThread() OVERRIDE {}
112 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} 112 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {}
113 virtual void CommitVSyncParameters(base::TimeTicks timebase,
114 base::TimeDelta interval) OVERRIDE {}
115 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) OVERRIDE {}
113 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE {} 116 virtual void SetMaxSwapsPendingOnImplThread(int max) OVERRIDE {}
114 virtual void DidSwapBuffersOnImplThread() OVERRIDE {} 117 virtual void DidSwapBuffersOnImplThread() OVERRIDE {}
115 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE {} 118 virtual void DidSwapBuffersCompleteOnImplThread() OVERRIDE {}
116 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE {} 119 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE {}
117 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { 120 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE {
118 on_can_draw_state_changed_called_ = true; 121 on_can_draw_state_changed_called_ = true;
119 } 122 }
120 virtual void NotifyReadyToActivate() OVERRIDE { 123 virtual void NotifyReadyToActivate() OVERRIDE {
121 did_notify_ready_to_activate_ = true; 124 did_notify_ready_to_activate_ = true;
122 host_impl_->ActivatePendingTree(); 125 host_impl_->ActivatePendingTree();
(...skipping 6270 matching lines...) Expand 10 before | Expand all | Expand 10 after
6393 EXPECT_EQ(host_impl_->global_tile_state().hard_memory_limit_in_bytes, 6396 EXPECT_EQ(host_impl_->global_tile_state().hard_memory_limit_in_bytes,
6394 300u * 1024u * 1024u); 6397 300u * 1024u * 1024u);
6395 EXPECT_EQ(host_impl_->global_tile_state().soft_memory_limit_in_bytes, 6398 EXPECT_EQ(host_impl_->global_tile_state().soft_memory_limit_in_bytes,
6396 150u * 1024u * 1024u); 6399 150u * 1024u * 1024u);
6397 EXPECT_EQ(host_impl_->global_tile_state().unused_memory_limit_in_bytes, 6400 EXPECT_EQ(host_impl_->global_tile_state().unused_memory_limit_in_bytes,
6398 75u * 1024u * 1024u); 6401 75u * 1024u * 1024u);
6399 } 6402 }
6400 6403
6401 } // namespace 6404 } // namespace
6402 } // namespace cc 6405 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698