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

Side by Side Diff: components/mus/gpu/display_compositor/compositor_frame_sink_impl.h

Issue 2092843002: Implement CompositorFrame Struct Traits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed dcheng's comments Created 4 years, 5 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 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 COMPONENTS_MUS_GPU_DISPLAY_COMPOSITOR_COMPOSITOR_FRAME_SINK_IMPL_H_ 5 #ifndef COMPONENTS_MUS_GPU_DISPLAY_COMPOSITOR_COMPOSITOR_FRAME_SINK_IMPL_H_
6 #define COMPONENTS_MUS_GPU_DISPLAY_COMPOSITOR_COMPOSITOR_FRAME_SINK_IMPL_H_ 6 #define COMPONENTS_MUS_GPU_DISPLAY_COMPOSITOR_COMPOSITOR_FRAME_SINK_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "cc/scheduler/begin_frame_source.h" 9 #include "cc/scheduler/begin_frame_source.h"
10 #include "cc/surfaces/surface_factory.h" 10 #include "cc/surfaces/surface_factory.h"
(...skipping 18 matching lines...) Expand all
29 CompositorFrameSinkDelegate* delegate, 29 CompositorFrameSinkDelegate* delegate,
30 int sink_id, 30 int sink_id,
31 const scoped_refptr<SurfacesState>& surfaces_state, 31 const scoped_refptr<SurfacesState>& surfaces_state,
32 mojo::InterfaceRequest<mojom::CompositorFrameSink> request, 32 mojo::InterfaceRequest<mojom::CompositorFrameSink> request,
33 mojom::CompositorFrameSinkClientPtr client); 33 mojom::CompositorFrameSinkClientPtr client);
34 ~CompositorFrameSinkImpl() override; 34 ~CompositorFrameSinkImpl() override;
35 35
36 // mojom::CompositorFrameSink implementation. 36 // mojom::CompositorFrameSink implementation.
37 void SetNeedsBeginFrame(bool needs_begin_frame) override; 37 void SetNeedsBeginFrame(bool needs_begin_frame) override;
38 void SubmitCompositorFrame( 38 void SubmitCompositorFrame(
39 cc::mojom::CompositorFramePtr frame, 39 cc::CompositorFrame compositor_frame,
40 const SubmitCompositorFrameCallback& callback) override; 40 const SubmitCompositorFrameCallback& callback) override;
41 41
42 private: 42 private:
43 // SurfaceFactoryClient implementation. 43 // SurfaceFactoryClient implementation.
44 void ReturnResources(const cc::ReturnedResourceArray& resources) override; 44 void ReturnResources(const cc::ReturnedResourceArray& resources) override;
45 void WillDrawSurface(cc::SurfaceId surface_id, 45 void WillDrawSurface(cc::SurfaceId surface_id,
46 const gfx::Rect& damage_rect) override; 46 const gfx::Rect& damage_rect) override;
47 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; 47 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override;
48 48
49 // BeginFrameObserver implementation. 49 // BeginFrameObserver implementation.
(...skipping 15 matching lines...) Expand all
65 mojom::CompositorFrameSinkClientPtr client_; 65 mojom::CompositorFrameSinkClientPtr client_;
66 mojo::Binding<mojom::CompositorFrameSink> binding_; 66 mojo::Binding<mojom::CompositorFrameSink> binding_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkImpl); 68 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkImpl);
69 }; 69 };
70 70
71 } // namespace gpu 71 } // namespace gpu
72 } // namespace mus 72 } // namespace mus
73 73
74 #endif // COMPONENTS_MUS_GPU_DISPLAY_COMPOSITOR_COMPOSITOR_FRAME_SINK_IMPL_H_ 74 #endif // COMPONENTS_MUS_GPU_DISPLAY_COMPOSITOR_COMPOSITOR_FRAME_SINK_IMPL_H_
OLDNEW
« no previous file with comments | « components/mus/gpu/display_compositor/BUILD.gn ('k') | components/mus/gpu/display_compositor/compositor_frame_sink_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698