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

Side by Side Diff: services/ui/ws/compositor_frame_sink_client_binding.h

Issue 2915483003: Remove MojoCompositorFrameSink::EvictCurrentSurface (Closed)
Patch Set: Fix FrameGenerator unit test Created 3 years, 6 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_WS_COMPOSITOR_FRAME_SINK_CLIENT_BINDING_H_ 5 #ifndef SERVICES_UI_WS_COMPOSITOR_FRAME_SINK_CLIENT_BINDING_H_
6 #define SERVICES_UI_WS_COMPOSITOR_FRAME_SINK_CLIENT_BINDING_H_ 6 #define SERVICES_UI_WS_COMPOSITOR_FRAME_SINK_CLIENT_BINDING_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/ipc/frame_sink_manager.mojom.h" 9 #include "cc/ipc/frame_sink_manager.mojom.h"
10 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" 10 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h"
(...skipping 16 matching lines...) Expand all
27 cc::mojom::MojoCompositorFrameSinkAssociatedPtr compositor_frame_sink, 27 cc::mojom::MojoCompositorFrameSinkAssociatedPtr compositor_frame_sink,
28 cc::mojom::DisplayPrivateAssociatedPtr display_private); 28 cc::mojom::DisplayPrivateAssociatedPtr display_private);
29 ~CompositorFrameSinkClientBinding() override; 29 ~CompositorFrameSinkClientBinding() override;
30 30
31 private: 31 private:
32 // cc::mojom::MojoCompositorFrameSink implementation: 32 // cc::mojom::MojoCompositorFrameSink implementation:
33 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, 33 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id,
34 cc::CompositorFrame frame) override; 34 cc::CompositorFrame frame) override;
35 void SetNeedsBeginFrame(bool needs_begin_frame) override; 35 void SetNeedsBeginFrame(bool needs_begin_frame) override;
36 void DidNotProduceFrame(const cc::BeginFrameAck& ack) override; 36 void DidNotProduceFrame(const cc::BeginFrameAck& ack) override;
37 void EvictCurrentSurface() override;
38 37
39 mojo::Binding<cc::mojom::MojoCompositorFrameSinkClient> binding_; 38 mojo::Binding<cc::mojom::MojoCompositorFrameSinkClient> binding_;
40 cc::mojom::DisplayPrivateAssociatedPtr display_private_; 39 cc::mojom::DisplayPrivateAssociatedPtr display_private_;
41 cc::mojom::MojoCompositorFrameSinkAssociatedPtr compositor_frame_sink_; 40 cc::mojom::MojoCompositorFrameSinkAssociatedPtr compositor_frame_sink_;
42 cc::LocalSurfaceId local_surface_id_; 41 cc::LocalSurfaceId local_surface_id_;
43 cc::LocalSurfaceIdAllocator id_allocator_; 42 cc::LocalSurfaceIdAllocator id_allocator_;
44 gfx::Size last_submitted_frame_size_; 43 gfx::Size last_submitted_frame_size_;
45 44
46 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkClientBinding); 45 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkClientBinding);
47 }; 46 };
48 } 47 }
49 } 48 }
50 49
51 #endif // SERVICES_UI_WS_COMPOSITOR_FRAME_SINK_CLIENT_BINDING_H_ 50 #endif // SERVICES_UI_WS_COMPOSITOR_FRAME_SINK_CLIENT_BINDING_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | services/ui/ws/compositor_frame_sink_client_binding.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698