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

Unified Diff: cc/test/fake_output_surface.cc

Issue 15058004: cc: Rename VSync to BeginFrame (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/fake_output_surface.h ('k') | cc/test/layer_tree_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_output_surface.cc
diff --git a/cc/test/fake_output_surface.cc b/cc/test/fake_output_surface.cc
index 11964192d725d7093870318af54abd417b0c4f7b..eae7169b90f6c904cf7dc7edbbd7e33f7d644eb9 100644
--- a/cc/test/fake_output_surface.cc
+++ b/cc/test/fake_output_surface.cc
@@ -15,7 +15,7 @@ FakeOutputSurface::FakeOutputSurface(
scoped_ptr<WebKit::WebGraphicsContext3D> context3d, bool has_parent)
: OutputSurface(context3d.Pass()),
num_sent_frames_(0),
- vsync_notification_enabled_(false),
+ needs_begin_frame_(false),
forced_draw_to_software_device_(false),
weak_ptr_factory_(this) {
capabilities_.has_parent_compositor = has_parent;
@@ -41,12 +41,12 @@ void FakeOutputSurface::SendFrameToParentCompositor(
weak_ptr_factory_.GetWeakPtr()));
}
-void FakeOutputSurface::EnableVSyncNotification(bool enable) {
- vsync_notification_enabled_ = enable;
+void FakeOutputSurface::SetNeedsBeginFrame(bool enable) {
+ needs_begin_frame_ = enable;
}
-void FakeOutputSurface::DidVSync(base::TimeTicks frame_time) {
- client_->DidVSync(frame_time);
+void FakeOutputSurface::BeginFrame(base::TimeTicks frame_time) {
+ client_->BeginFrame(frame_time);
}
bool FakeOutputSurface::ForcedDrawToSoftwareDevice() const {
« no previous file with comments | « cc/test/fake_output_surface.h ('k') | cc/test/layer_tree_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698