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

Unified Diff: ui/compositor/test/compositor_test_api.cc

Issue 775143003: cc: Implement unified BeginFrame on aura (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add unittest Created 5 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 side-by-side diff with in-line comments
Download patch
Index: ui/compositor/test/compositor_test_api.cc
diff --git a/ui/compositor/test/compositor_test_api.cc b/ui/compositor/test/compositor_test_api.cc
new file mode 100644
index 0000000000000000000000000000000000000000..0773f813bcc80d3a8e4ebe7d72c051591250d842
--- /dev/null
+++ b/ui/compositor/test/compositor_test_api.cc
@@ -0,0 +1,23 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/compositor/test/compositor_test_api.h"
+
+#include "cc/output/begin_frame_args.h"
+#include "ui/compositor/compositor.h"
+
+namespace ui {
+
+CompositorTestAPI::CompositorTestAPI(Compositor* compositor)
+ : compositor_(compositor) {
+}
+
+CompositorTestAPI::~CompositorTestAPI() {
+}
+
+cc::BeginFrameArgs CompositorTestAPI::missed_begin_frame_args() {
+ return compositor_->missed_begin_frame_args_;
+}
+
+} // namespace ui
« ui/compositor/compositor_unittest.cc ('K') | « ui/compositor/test/compositor_test_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698