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

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

Issue 1435133004: cc: Clean up max frames/swaps pending usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 1 month 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 <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 CreateHostImpl(DefaultSettings(), CreateOutputSurface()); 107 CreateHostImpl(DefaultSettings(), CreateOutputSurface());
108 } 108 }
109 109
110 void TearDown() override {} 110 void TearDown() override {}
111 111
112 void UpdateRendererCapabilitiesOnImplThread() override {} 112 void UpdateRendererCapabilitiesOnImplThread() override {}
113 void DidLoseOutputSurfaceOnImplThread() override {} 113 void DidLoseOutputSurfaceOnImplThread() override {}
114 void CommitVSyncParameters(base::TimeTicks timebase, 114 void CommitVSyncParameters(base::TimeTicks timebase,
115 base::TimeDelta interval) override {} 115 base::TimeDelta interval) override {}
116 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {} 116 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {}
117 void SetMaxSwapsPendingOnImplThread(int max) override {}
118 void DidSwapBuffersOnImplThread() override {} 117 void DidSwapBuffersOnImplThread() override {}
119 void DidSwapBuffersCompleteOnImplThread() override {} 118 void DidSwapBuffersCompleteOnImplThread() override {}
120 void OnResourcelessSoftareDrawStateChanged(bool resourceless_draw) override {} 119 void OnResourcelessSoftareDrawStateChanged(bool resourceless_draw) override {}
121 void OnCanDrawStateChanged(bool can_draw) override { 120 void OnCanDrawStateChanged(bool can_draw) override {
122 on_can_draw_state_changed_called_ = true; 121 on_can_draw_state_changed_called_ = true;
123 } 122 }
124 void NotifyReadyToActivate() override { 123 void NotifyReadyToActivate() override {
125 did_notify_ready_to_activate_ = true; 124 did_notify_ready_to_activate_ = true;
126 host_impl_->ActivateSyncTree(); 125 host_impl_->ActivateSyncTree();
127 } 126 }
(...skipping 8936 matching lines...) Expand 10 before | Expand all | Expand 10 after
9064 host_impl_->active_tree()->SetPageScaleOnActiveTree(2.f); 9063 host_impl_->active_tree()->SetPageScaleOnActiveTree(2.f);
9065 DrawFrame(); 9064 DrawFrame();
9066 in_subtree_of_page_scale_layer = host_impl_->active_tree()->LayerById(100); 9065 in_subtree_of_page_scale_layer = host_impl_->active_tree()->LayerById(100);
9067 node = host_impl_->active_tree()->property_trees()->transform_tree.Node( 9066 node = host_impl_->active_tree()->property_trees()->transform_tree.Node(
9068 in_subtree_of_page_scale_layer->transform_tree_index()); 9067 in_subtree_of_page_scale_layer->transform_tree_index());
9069 EXPECT_EQ(node->data.sublayer_scale, gfx::Vector2dF(2.f, 2.f)); 9068 EXPECT_EQ(node->data.sublayer_scale, gfx::Vector2dF(2.f, 2.f));
9070 } 9069 }
9071 9070
9072 } // namespace 9071 } // namespace
9073 } // namespace cc 9072 } // 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