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

Side by Side Diff: services/ui/surfaces/compositor_frame_sink.h

Issue 2383373002: Reduce SurfaceIdAllocator usage and tie SurfaceFactory to a single FrameSinkId (Closed)
Patch Set: Rebased Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « content/test/test_render_view_host.cc ('k') | services/ui/surfaces/compositor_frame_sink.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SERVICES_UI_SURFACES_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef SERVICES_UI_SURFACES_COMPOSITOR_FRAME_SINK_H_
6 #define SERVICES_UI_SURFACES_COMPOSITOR_FRAME_SINK_H_ 6 #define SERVICES_UI_SURFACES_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include "cc/surfaces/display_client.h" 8 #include "cc/surfaces/display_client.h"
9 #include "cc/surfaces/surface.h" 9 #include "cc/surfaces/surface.h"
10 #include "cc/surfaces/surface_factory.h" 10 #include "cc/surfaces/surface_factory.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // SurfaceFactoryClient implementation. 63 // SurfaceFactoryClient implementation.
64 void ReturnResources(const cc::ReturnedResourceArray& resources) override; 64 void ReturnResources(const cc::ReturnedResourceArray& resources) override;
65 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; 65 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override;
66 66
67 // DisplayClient implementation. 67 // DisplayClient implementation.
68 void DisplayOutputSurfaceLost() override; 68 void DisplayOutputSurfaceLost() override;
69 void DisplayWillDrawAndSwap(bool will_draw_and_swap, 69 void DisplayWillDrawAndSwap(bool will_draw_and_swap,
70 const cc::RenderPassList& render_passes) override; 70 const cc::RenderPassList& render_passes) override;
71 void DisplayDidDrawAndSwap() override; 71 void DisplayDidDrawAndSwap() override;
72 72
73 const cc::FrameSinkId frame_sink_id_;
73 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 74 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
74 scoped_refptr<DisplayCompositor> display_compositor_; 75 scoped_refptr<DisplayCompositor> display_compositor_;
75 cc::SurfaceFactory factory_; 76 cc::SurfaceFactory factory_;
76 cc::SurfaceIdAllocator allocator_; 77 cc::SurfaceIdAllocator allocator_;
77 cc::SurfaceId surface_id_; 78 cc::SurfaceId surface_id_;
78 79
79 gfx::Size display_size_; 80 gfx::Size display_size_;
80 std::unique_ptr<cc::Display> display_; 81 std::unique_ptr<cc::Display> display_;
81 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSink); 82 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSink);
82 }; 83 };
83 84
84 } // nanmespace surfaces 85 } // nanmespace surfaces
85 } // namespace ui 86 } // namespace ui
86 87
87 #endif // SERVICES_UI_SURFACES_COMPOSITOR_FRAME_SINK_H_ 88 #endif // SERVICES_UI_SURFACES_COMPOSITOR_FRAME_SINK_H_
OLDNEW
« no previous file with comments | « content/test/test_render_view_host.cc ('k') | services/ui/surfaces/compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698