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

Side by Side Diff: cc/test/layer_tree_test.cc

Issue 54493003: Propagate source_frame_number from LTH to DevTools (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed android build Created 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/test/fake_layer_tree_host_client.h ('k') | cc/trees/layer_tree_host.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/test/layer_tree_test.h" 5 #include "cc/test/layer_tree_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "cc/animation/animation.h" 8 #include "cc/animation/animation.h"
9 #include "cc/animation/animation_registrar.h" 9 #include "cc/animation/animation_registrar.h"
10 #include "cc/animation/layer_animation_controller.h" 10 #include "cc/animation/layer_animation_controller.h"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 // Implementation of LayerTreeHost callback interface. 199 // Implementation of LayerTreeHost callback interface.
200 class LayerTreeHostClientForTesting : public LayerTreeHostClient, 200 class LayerTreeHostClientForTesting : public LayerTreeHostClient,
201 public LayerTreeHostSingleThreadClient { 201 public LayerTreeHostSingleThreadClient {
202 public: 202 public:
203 static scoped_ptr<LayerTreeHostClientForTesting> Create( 203 static scoped_ptr<LayerTreeHostClientForTesting> Create(
204 TestHooks* test_hooks) { 204 TestHooks* test_hooks) {
205 return make_scoped_ptr(new LayerTreeHostClientForTesting(test_hooks)); 205 return make_scoped_ptr(new LayerTreeHostClientForTesting(test_hooks));
206 } 206 }
207 virtual ~LayerTreeHostClientForTesting() {} 207 virtual ~LayerTreeHostClientForTesting() {}
208 208
209 virtual void WillBeginMainFrame() OVERRIDE { 209 virtual void WillBeginMainFrame(int frame_id) OVERRIDE {
210 test_hooks_->WillBeginMainFrame(); 210 test_hooks_->WillBeginMainFrame();
211 } 211 }
212 212
213 virtual void DidBeginMainFrame() OVERRIDE { 213 virtual void DidBeginMainFrame() OVERRIDE {
214 test_hooks_->DidBeginMainFrame(); 214 test_hooks_->DidBeginMainFrame();
215 } 215 }
216 216
217 virtual void Animate(double monotonic_time) OVERRIDE { 217 virtual void Animate(double monotonic_time) OVERRIDE {
218 test_hooks_->Animate(base::TimeTicks::FromInternalValue( 218 test_hooks_->Animate(base::TimeTicks::FromInternalValue(
219 monotonic_time * base::Time::kMicrosecondsPerSecond)); 219 monotonic_time * base::Time::kMicrosecondsPerSecond));
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 } 668 }
669 669
670 scoped_refptr<ContextProvider> LayerTreeTest::OffscreenContextProvider() { 670 scoped_refptr<ContextProvider> LayerTreeTest::OffscreenContextProvider() {
671 if (!compositor_contexts_.get() || 671 if (!compositor_contexts_.get() ||
672 compositor_contexts_->DestroyedOnMainThread()) 672 compositor_contexts_->DestroyedOnMainThread())
673 compositor_contexts_ = TestContextProvider::Create(); 673 compositor_contexts_ = TestContextProvider::Create();
674 return compositor_contexts_; 674 return compositor_contexts_;
675 } 675 }
676 676
677 } // namespace cc 677 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_layer_tree_host_client.h ('k') | cc/trees/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698