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

Unified Diff: content/browser/compositor/reflector_impl_unittest.cc

Issue 1821863002: Hook up ui::Compositor to Display's BeginFrameSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase; refactor mus output surface Created 4 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: content/browser/compositor/reflector_impl_unittest.cc
diff --git a/content/browser/compositor/reflector_impl_unittest.cc b/content/browser/compositor/reflector_impl_unittest.cc
index cebaf514ddaf1e958d52e2af8fa9c3922c984f57..925ad53306e5d292fdd2cd06fa833aa71f59c9ee 100644
--- a/content/browser/compositor/reflector_impl_unittest.cc
+++ b/content/browser/compositor/reflector_impl_unittest.cc
@@ -73,10 +73,12 @@ class TestOutputSurface : public BrowserCompositorOutputSurface {
public:
TestOutputSurface(
const scoped_refptr<cc::ContextProvider>& context_provider,
- const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager)
+ const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager,
+ base::SingleThreadTaskRunner* task_runner)
: BrowserCompositorOutputSurface(context_provider,
nullptr,
vsync_manager,
+ task_runner,
CreateTestValidatorOzone()) {
surface_size_ = gfx::Size(256, 256);
device_scale_factor_ = 1.f;
@@ -134,7 +136,8 @@ class ReflectorImplTest : public testing::Test {
context_provider_ =
cc::TestContextProvider::Create(cc::TestWebGraphicsContext3D::Create());
output_surface_ = scoped_ptr<TestOutputSurface>(
- new TestOutputSurface(context_provider_, compositor_->vsync_manager()));
+ new TestOutputSurface(context_provider_, compositor_->vsync_manager(),
+ compositor_task_runner_.get()));
CHECK(output_surface_->BindToClient(&output_surface_client_));
root_layer_.reset(new ui::Layer(ui::LAYER_SOLID_COLOR));

Powered by Google App Engine
This is Rietveld 408576698