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

Side by Side Diff: components/display_compositor/gpu_compositor_frame_sink.h

Issue 2701663003: CompositorFrameSinkSupportClient::WillDraw needs to take in arguments (Closed)
Patch Set: c Created 3 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_
6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ 6 #define COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 void OnPrivateConnectionLost(); 53 void OnPrivateConnectionLost();
54 54
55 GpuCompositorFrameSinkDelegate* const delegate_; 55 GpuCompositorFrameSinkDelegate* const delegate_;
56 std::unique_ptr<cc::CompositorFrameSinkSupport> support_; 56 std::unique_ptr<cc::CompositorFrameSinkSupport> support_;
57 57
58 private: 58 private:
59 // cc::CompositorFrameSinkSupportClient implementation: 59 // cc::CompositorFrameSinkSupportClient implementation:
60 void DidReceiveCompositorFrameAck() override; 60 void DidReceiveCompositorFrameAck() override;
61 void OnBeginFrame(const cc::BeginFrameArgs& args) override; 61 void OnBeginFrame(const cc::BeginFrameArgs& args) override;
62 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; 62 void ReclaimResources(const cc::ReturnedResourceArray& resources) override;
63 void WillDrawSurface() override; 63 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id,
64 const gfx::Rect& damage_rect) override;
64 65
65 bool client_connection_lost_ = false; 66 bool client_connection_lost_ = false;
66 bool private_connection_lost_ = false; 67 bool private_connection_lost_ = false;
67 68
68 cc::mojom::MojoCompositorFrameSinkClientPtr client_; 69 cc::mojom::MojoCompositorFrameSinkClientPtr client_;
69 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> 70 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate>
70 compositor_frame_sink_private_binding_; 71 compositor_frame_sink_private_binding_;
71 72
72 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); 73 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink);
73 }; 74 };
74 75
75 } // namespace display_compositor 76 } // namespace display_compositor
76 77
77 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_ 78 #endif // COMPONENTS_DISPLAY_COMPOSITOR_GPU_COMPOSITOR_FRAME_SINK_H_
OLDNEW
« no previous file with comments | « cc/surfaces/compositor_frame_sink_support_unittest.cc ('k') | components/display_compositor/gpu_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698