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

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

Issue 2281583003: services/ui: Split GpuServiceInternal into gpu vs. ws pieces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DONE_2016.08.24_mus-ws-gpu-refactor
Patch Set: tot merge 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') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/frame_generator.h
diff --git a/services/ui/ws/frame_generator.h b/services/ui/ws/frame_generator.h
index c3d6c9831d6981e242c92464a779d3c192af5e89..00b296a9eaf960b1f3e5ffd115efceae97d957da 100644
--- a/services/ui/ws/frame_generator.h
+++ b/services/ui/ws/frame_generator.h
@@ -18,6 +18,10 @@ class CopyOutputRequest;
class RenderPass;
}
+namespace gpu {
+class GpuChannelHost;
+}
+
namespace ui {
class DisplayCompositor;
@@ -40,6 +44,8 @@ class FrameGenerator {
scoped_refptr<SurfacesState> surfaces_state);
virtual ~FrameGenerator();
+ void OnGpuChannelEstablished(scoped_refptr<gpu::GpuChannelHost> gpu_channel);
+
// Schedules a redraw for the provided region.
void RequestRedraw(const gfx::Rect& redraw_region);
void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget);
@@ -77,8 +83,10 @@ class FrameGenerator {
FrameGeneratorDelegate* delegate_;
scoped_refptr<SurfacesState> surfaces_state_;
+ scoped_refptr<gpu::GpuChannelHost> gpu_channel_;
std::unique_ptr<DisplayCompositor> display_compositor_;
+ gfx::AcceleratedWidget widget_ = gfx::kNullAcceleratedWidget;
// The region that needs to be redrawn next time the compositor frame is
// generated.
« no previous file with comments | « services/ui/ws/DEPS ('k') | services/ui/ws/frame_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698