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

Side by Side Diff: components/viz/frame_sinks/gpu_root_compositor_frame_sink.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 COMPONENTS_VIZ_FRAME_SINKS_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef COMPONENTS_VIZ_FRAME_SINKS_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_
6 #define COMPONENTS_VIZ_FRAME_SINKS_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_ 6 #define COMPONENTS_VIZ_FRAME_SINKS_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include "cc/ipc/frame_sink_manager.mojom.h" 8 #include "cc/ipc/frame_sink_manager.mojom.h"
9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" 9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h"
10 #include "cc/surfaces/compositor_frame_sink_support_client.h" 10 #include "cc/surfaces/compositor_frame_sink_support_client.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // cc::mojom::DisplayPrivate: 49 // cc::mojom::DisplayPrivate:
50 void SetDisplayVisible(bool visible) override; 50 void SetDisplayVisible(bool visible) override;
51 void ResizeDisplay(const gfx::Size& size) override; 51 void ResizeDisplay(const gfx::Size& size) override;
52 void SetDisplayColorSpace(const gfx::ColorSpace& color_space) override; 52 void SetDisplayColorSpace(const gfx::ColorSpace& color_space) override;
53 void SetOutputIsSecure(bool secure) override; 53 void SetOutputIsSecure(bool secure) override;
54 void SetLocalSurfaceId(const cc::LocalSurfaceId& local_surface_id, 54 void SetLocalSurfaceId(const cc::LocalSurfaceId& local_surface_id,
55 float scale_factor) override; 55 float scale_factor) override;
56 56
57 // cc::mojom::MojoCompositorFrameSink: 57 // cc::mojom::MojoCompositorFrameSink:
58 void EvictCurrentSurface() override;
59 void SetNeedsBeginFrame(bool needs_begin_frame) override; 58 void SetNeedsBeginFrame(bool needs_begin_frame) override;
60 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, 59 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id,
61 cc::CompositorFrame frame) override; 60 cc::CompositorFrame frame) override;
62 void DidNotProduceFrame(const cc::BeginFrameAck& begin_frame_ack) override; 61 void DidNotProduceFrame(const cc::BeginFrameAck& begin_frame_ack) override;
63 62
64 // cc::mojom::MojoCompositorFrameSinkPrivate: 63 // cc::mojom::MojoCompositorFrameSinkPrivate:
65 void ClaimTemporaryReference(const cc::SurfaceId& surface_id) override; 64 void ClaimTemporaryReference(const cc::SurfaceId& surface_id) override;
66 void RequestCopyOfSurface( 65 void RequestCopyOfSurface(
67 std::unique_ptr<cc::CopyOutputRequest> request) override; 66 std::unique_ptr<cc::CopyOutputRequest> request) override;
68 67
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> 100 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate>
102 compositor_frame_sink_private_binding_; 101 compositor_frame_sink_private_binding_;
103 mojo::AssociatedBinding<cc::mojom::DisplayPrivate> display_private_binding_; 102 mojo::AssociatedBinding<cc::mojom::DisplayPrivate> display_private_binding_;
104 103
105 DISALLOW_COPY_AND_ASSIGN(GpuRootCompositorFrameSink); 104 DISALLOW_COPY_AND_ASSIGN(GpuRootCompositorFrameSink);
106 }; 105 };
107 106
108 } // namespace viz 107 } // namespace viz
109 108
110 #endif // COMPONENTS_VIZ_FRAME_SINKS_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_ 109 #endif // COMPONENTS_VIZ_FRAME_SINKS_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_
OLDNEW
« no previous file with comments | « components/viz/frame_sinks/gpu_compositor_frame_sink.cc ('k') | components/viz/frame_sinks/gpu_root_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698