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

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

Issue 194543002: Removing base::Time from SetAnimationEvents and PostAnimationEventsToMainThreadOnImplThread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing unused last_animation_time_ as well. Created 6 years, 9 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/single_thread_proxy.h » ('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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE { 126 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE {
127 did_request_manage_tiles_ = true; 127 did_request_manage_tiles_ = true;
128 } 128 }
129 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE { 129 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE {
130 did_upload_visible_tile_ = true; 130 did_upload_visible_tile_ = true;
131 } 131 }
132 virtual void SetNeedsCommitOnImplThread() OVERRIDE { 132 virtual void SetNeedsCommitOnImplThread() OVERRIDE {
133 did_request_commit_ = true; 133 did_request_commit_ = true;
134 } 134 }
135 virtual void PostAnimationEventsToMainThreadOnImplThread( 135 virtual void PostAnimationEventsToMainThreadOnImplThread(
136 scoped_ptr<AnimationEventsVector> events, 136 scoped_ptr<AnimationEventsVector> events) OVERRIDE {}
137 base::Time wall_clock_time) OVERRIDE {}
138 virtual bool ReduceContentsTextureMemoryOnImplThread( 137 virtual bool ReduceContentsTextureMemoryOnImplThread(
139 size_t limit_bytes, int priority_cutoff) OVERRIDE { 138 size_t limit_bytes, int priority_cutoff) OVERRIDE {
140 current_limit_bytes_ = limit_bytes; 139 current_limit_bytes_ = limit_bytes;
141 current_priority_cutoff_value_ = priority_cutoff; 140 current_priority_cutoff_value_ = priority_cutoff;
142 return reduce_memory_result_; 141 return reduce_memory_result_;
143 } 142 }
144 virtual void SendManagedMemoryStats() OVERRIDE {} 143 virtual void SendManagedMemoryStats() OVERRIDE {}
145 virtual bool IsInsideDraw() OVERRIDE { return false; } 144 virtual bool IsInsideDraw() OVERRIDE { return false; }
146 virtual void RenewTreePriority() OVERRIDE {} 145 virtual void RenewTreePriority() OVERRIDE {}
147 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay) 146 virtual void RequestScrollbarAnimationOnImplThread(base::TimeDelta delay)
(...skipping 6031 matching lines...) Expand 10 before | Expand all | Expand 10 after
6179 EXPECT_EQ(host_impl_->global_tile_state().hard_memory_limit_in_bytes, 6178 EXPECT_EQ(host_impl_->global_tile_state().hard_memory_limit_in_bytes,
6180 300u * 1024u * 1024u); 6179 300u * 1024u * 1024u);
6181 EXPECT_EQ(host_impl_->global_tile_state().soft_memory_limit_in_bytes, 6180 EXPECT_EQ(host_impl_->global_tile_state().soft_memory_limit_in_bytes,
6182 150u * 1024u * 1024u); 6181 150u * 1024u * 1024u);
6183 EXPECT_EQ(host_impl_->global_tile_state().unused_memory_limit_in_bytes, 6182 EXPECT_EQ(host_impl_->global_tile_state().unused_memory_limit_in_bytes,
6184 75u * 1024u * 1024u); 6183 75u * 1024u * 1024u);
6185 } 6184 }
6186 6185
6187 } // namespace 6186 } // namespace
6188 } // namespace cc 6187 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698