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

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

Issue 2349743004: cc: Remove things from OutputSurface and CompositorFrameSink. (Closed)
Patch Set: delete-stuff-cfs: comment-and-rebase Created 4 years, 3 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 | « services/ui/surfaces/direct_output_surface_ozone.cc ('k') | 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 9bac870576eee0df811e7e766cf326854e6da0bd..6e54d2f3b5e6d31dfb78fc905c1a331de111ee50 100644
--- a/ui/compositor/test/in_process_context_factory.cc
+++ b/ui/compositor/test/in_process_context_factory.cc
@@ -49,12 +49,8 @@ class FakeReflector : public Reflector {
// GL surface.
class DirectOutputSurface : public cc::OutputSurface {
public:
- DirectOutputSurface(
- scoped_refptr<InProcessContextProvider> context_provider,
- scoped_refptr<InProcessContextProvider> worker_context_provider)
- : cc::OutputSurface(std::move(context_provider),
- std::move(worker_context_provider),
- nullptr),
+ DirectOutputSurface(scoped_refptr<InProcessContextProvider> context_provider)
+ : cc::OutputSurface(std::move(context_provider)),
weak_ptr_factory_(this) {}
~DirectOutputSurface() override {}
@@ -161,11 +157,10 @@ void InProcessContextFactory::CreateCompositorFrameSink(
if (use_test_surface_) {
bool flipped_output_surface = false;
display_output_surface = base::MakeUnique<cc::PixelTestOutputSurface>(
- context_provider, shared_worker_context_provider_,
- flipped_output_surface);
+ context_provider, flipped_output_surface);
} else {
- display_output_surface = base::MakeUnique<DirectOutputSurface>(
- context_provider, shared_worker_context_provider_);
+ display_output_surface =
+ base::MakeUnique<DirectOutputSurface>(context_provider);
}
std::unique_ptr<cc::DelayBasedBeginFrameSource> begin_frame_source(
« no previous file with comments | « services/ui/surfaces/direct_output_surface_ozone.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698