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

Unified Diff: services/ui/ws/frame_generator.cc

Issue 2280723004: services/ui: Remove unwanted gpu dependency from services/ui/surfaces. (Closed)
Patch Set: . Created 4 years, 4 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/ws/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/frame_generator.cc
diff --git a/services/ui/ws/frame_generator.cc b/services/ui/ws/frame_generator.cc
index b46f17f6a6c2111c0b87c788748d3cf2ecfd9fc1..9f0e5222e1340a5f7e0113a8f1c7aec27ee2c208 100644
--- a/services/ui/ws/frame_generator.cc
+++ b/services/ui/ws/frame_generator.cc
@@ -10,6 +10,7 @@
#include "cc/quads/render_pass_draw_quad.h"
#include "cc/quads/shared_quad_state.h"
#include "cc/quads/surface_draw_quad.h"
+#include "services/ui/gpu/gpu_service_internal.h"
#include "services/ui/surfaces/display_compositor.h"
#include "services/ui/ws/frame_generator_delegate.h"
#include "services/ui/ws/server_window.h"
@@ -45,7 +46,9 @@ void FrameGenerator::OnAcceleratedWidgetAvailable(
gfx::AcceleratedWidget widget) {
if (widget != gfx::kNullAcceleratedWidget) {
display_compositor_.reset(new DisplayCompositor(
- base::ThreadTaskRunnerHandle::Get(), widget, surfaces_state_));
+ base::ThreadTaskRunnerHandle::Get(), widget,
+ GpuServiceInternal::GetInstance()->gpu_channel_local(),
+ surfaces_state_));
}
}
« no previous file with comments | « services/ui/ws/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698