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

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

Issue 12674030: cc: Hook vsync time source to output surface (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Review tweaks. Created 7 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 | Annotate | Revision Log
« 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 host_impl_->InitializeRenderer(CreateOutputSurface()); 84 host_impl_->InitializeRenderer(CreateOutputSurface());
85 host_impl_->SetViewportSize(gfx::Size(10, 10), gfx::Size(10, 10)); 85 host_impl_->SetViewportSize(gfx::Size(10, 10), gfx::Size(10, 10));
86 } 86 }
87 87
88 virtual void TearDown() OVERRIDE {} 88 virtual void TearDown() OVERRIDE {}
89 89
90 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {} 90 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE {}
91 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} 91 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {}
92 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, 92 virtual void OnVSyncParametersChanged(base::TimeTicks timebase,
93 base::TimeDelta interval) OVERRIDE {} 93 base::TimeDelta interval) OVERRIDE {}
94 virtual void DidVSync(base::TimeTicks frame_time) OVERRIDE {}
94 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE { 95 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE {
95 on_can_draw_state_changed_called_ = true; 96 on_can_draw_state_changed_called_ = true;
96 } 97 }
97 virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) OVERRIDE { 98 virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) OVERRIDE {
98 has_pending_tree_ = has_pending_tree; 99 has_pending_tree_ = has_pending_tree;
99 } 100 }
100 virtual void SetNeedsRedrawOnImplThread() OVERRIDE { 101 virtual void SetNeedsRedrawOnImplThread() OVERRIDE {
101 did_request_redraw_ = true; 102 did_request_redraw_ = true;
102 } 103 }
103 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE { 104 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE {
(...skipping 4852 matching lines...) Expand 10 before | Expand all | Expand 10 after
4956 EXPECT_EQ(gfx::RectF(0.f, 0.f, 1.f, 1.f).ToString(), 4957 EXPECT_EQ(gfx::RectF(0.f, 0.f, 1.f, 1.f).ToString(),
4957 render_pass_quad->mask_uv_rect.ToString()); 4958 render_pass_quad->mask_uv_rect.ToString());
4958 4959
4959 host_impl_->DrawLayers(&frame, base::TimeTicks::Now()); 4960 host_impl_->DrawLayers(&frame, base::TimeTicks::Now());
4960 host_impl_->DidDrawAllLayers(frame); 4961 host_impl_->DidDrawAllLayers(frame);
4961 } 4962 }
4962 } 4963 }
4963 4964
4964 } // namespace 4965 } // namespace
4965 } // namespace cc 4966 } // 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