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

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

Issue 2176303002: services/ui: Remove deprecated gpu code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tot-merge Created 4 years, 5 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/frame_generator.h ('k') | services/ui/ws/frame_generator_unittest.cc » ('j') | 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 c312d00565914bdd251d952f45ff19cea23c8c8a..f4f803c2a79788291847c1b4c992dadaacd7ad7b 100644
--- a/services/ui/ws/frame_generator.cc
+++ b/services/ui/ws/frame_generator.cc
@@ -21,10 +21,8 @@ namespace ui {
namespace ws {
FrameGenerator::FrameGenerator(FrameGeneratorDelegate* delegate,
- scoped_refptr<GpuState> gpu_state,
scoped_refptr<SurfacesState> surfaces_state)
: delegate_(delegate),
- gpu_state_(gpu_state),
surfaces_state_(surfaces_state),
draw_timer_(false, false),
weak_factory_(this) {
@@ -46,9 +44,8 @@ void FrameGenerator::RequestRedraw(const gfx::Rect& redraw_region) {
void FrameGenerator::OnAcceleratedWidgetAvailable(
gfx::AcceleratedWidget widget) {
if (widget != gfx::kNullAcceleratedWidget) {
- display_compositor_.reset(
- new DisplayCompositor(base::ThreadTaskRunnerHandle::Get(), widget,
- gpu_state_, surfaces_state_));
+ display_compositor_.reset(new DisplayCompositor(
+ base::ThreadTaskRunnerHandle::Get(), widget, surfaces_state_));
}
}
« no previous file with comments | « services/ui/ws/frame_generator.h ('k') | services/ui/ws/frame_generator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698