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

Side by Side Diff: components/viz/frame_sinks/gpu_root_compositor_frame_sink.h

Issue 2888043004: [cc] Add and plumb CFS::DidNotProduceFrame. (Closed)
Patch Set: address nits, rename to DidNotProduceFrame. Created 3 years, 7 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; 58 void EvictCurrentSurface() override;
59 void SetNeedsBeginFrame(bool needs_begin_frame) override; 59 void SetNeedsBeginFrame(bool needs_begin_frame) override;
60 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, 60 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id,
61 cc::CompositorFrame frame) override; 61 cc::CompositorFrame frame) override;
62 void BeginFrameDidNotSwap(const cc::BeginFrameAck& begin_frame_ack) override; 62 void DidNotProduceFrame(const cc::BeginFrameAck& begin_frame_ack) override;
63 63
64 // cc::mojom::MojoCompositorFrameSinkPrivate: 64 // cc::mojom::MojoCompositorFrameSinkPrivate:
65 void ClaimTemporaryReference(const cc::SurfaceId& surface_id) override; 65 void ClaimTemporaryReference(const cc::SurfaceId& surface_id) override;
66 void RequestCopyOfSurface( 66 void RequestCopyOfSurface(
67 std::unique_ptr<cc::CopyOutputRequest> request) override; 67 std::unique_ptr<cc::CopyOutputRequest> request) override;
68 68
69 private: 69 private:
70 // cc::DisplayClient: 70 // cc::DisplayClient:
71 void DisplayOutputSurfaceLost() override; 71 void DisplayOutputSurfaceLost() override;
72 void DisplayWillDrawAndSwap(bool will_draw_and_swap, 72 void DisplayWillDrawAndSwap(bool will_draw_and_swap,
(...skipping 28 matching lines...) Expand all
101 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> 101 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate>
102 compositor_frame_sink_private_binding_; 102 compositor_frame_sink_private_binding_;
103 mojo::AssociatedBinding<cc::mojom::DisplayPrivate> display_private_binding_; 103 mojo::AssociatedBinding<cc::mojom::DisplayPrivate> display_private_binding_;
104 104
105 DISALLOW_COPY_AND_ASSIGN(GpuRootCompositorFrameSink); 105 DISALLOW_COPY_AND_ASSIGN(GpuRootCompositorFrameSink);
106 }; 106 };
107 107
108 } // namespace viz 108 } // namespace viz
109 109
110 #endif // COMPONENTS_VIZ_FRAME_SINKS_GPU_ROOT_COMPOSITOR_FRAME_SINK_H_ 110 #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