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

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

Issue 2194893002: services/ui: Revert CLs that broke Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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 46e864cb95e44c48f7a085265ab619904bfc529f..81a29c86ed22f6edaa367f59bbc197b52f26304d 100644
--- a/services/ui/ws/frame_generator.cc
+++ b/services/ui/ws/frame_generator.cc
@@ -21,8 +21,10 @@ 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) {
@@ -44,8 +46,9 @@ 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, surfaces_state_));
+ display_compositor_.reset(
+ new DisplayCompositor(base::ThreadTaskRunnerHandle::Get(), widget,
+ gpu_state_, 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