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

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

Issue 2661123003: Gets views_examples drawing again (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/test/in_process_context_factory.cc
diff --git a/ui/compositor/test/in_process_context_factory.cc b/ui/compositor/test/in_process_context_factory.cc
index ff90047aa622a99ce2ecd674ac1d73c185dd9036..0a5be65e9fa2348b8cd73284239acb861ecfc957 100644
--- a/ui/compositor/test/in_process_context_factory.cc
+++ b/ui/compositor/test/in_process_context_factory.cc
@@ -52,9 +52,11 @@ class FakeReflector : public Reflector {
// GL surface.
class DirectOutputSurface : public cc::OutputSurface {
public:
- DirectOutputSurface(scoped_refptr<InProcessContextProvider> context_provider)
- : cc::OutputSurface(std::move(context_provider)),
- weak_ptr_factory_(this) {}
+ explicit DirectOutputSurface(
+ scoped_refptr<InProcessContextProvider> context_provider)
+ : cc::OutputSurface(context_provider), weak_ptr_factory_(this) {
+ capabilities_.flipped_output_surface = true;
+ }
~DirectOutputSurface() override {}
@@ -221,6 +223,8 @@ void InProcessContextFactory::CreateCompositorFrameSink(
shared_worker_context_provider_, &gpu_memory_buffer_manager_,
&shared_bitmap_manager_);
compositor->SetCompositorFrameSink(std::move(compositor_frame_sink));
+
+ data->display->Resize(compositor->size());
}
std::unique_ptr<Reflector> InProcessContextFactory::CreateReflector(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698