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

Side by Side Diff: components/mus/surfaces/display_compositor.h

Issue 2098953003: Make cc::CompositorFrames movable [Part 2 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed exo unittests 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_SURFACES_DISPLAY_COMPOSITOR_H_ 5 #ifndef COMPONENTS_MUS_SURFACES_DISPLAY_COMPOSITOR_H_
6 #define COMPONENTS_MUS_SURFACES_DISPLAY_COMPOSITOR_H_ 6 #define COMPONENTS_MUS_SURFACES_DISPLAY_COMPOSITOR_H_
7 7
8 #include "cc/surfaces/display_client.h" 8 #include "cc/surfaces/display_client.h"
9 #include "cc/surfaces/surface.h" 9 #include "cc/surfaces/surface.h"
10 #include "cc/surfaces/surface_factory.h" 10 #include "cc/surfaces/surface_factory.h"
(...skipping 21 matching lines...) Expand all
32 gfx::AcceleratedWidget widget, 32 gfx::AcceleratedWidget widget,
33 const scoped_refptr<GpuState>& gpu_state, 33 const scoped_refptr<GpuState>& gpu_state,
34 const scoped_refptr<SurfacesState>& surfaces_state); 34 const scoped_refptr<SurfacesState>& surfaces_state);
35 ~DisplayCompositor() override; 35 ~DisplayCompositor() override;
36 36
37 // DisplayCompositor embedders submit a CompositorFrame when content on the 37 // DisplayCompositor embedders submit a CompositorFrame when content on the
38 // display should be changed. A well-behaving embedder should only submit 38 // display should be changed. A well-behaving embedder should only submit
39 // a CompositorFrame once per BeginFrame tick. The callback is called the 39 // a CompositorFrame once per BeginFrame tick. The callback is called the
40 // first time this frame is used to draw, or if the frame is discarded. 40 // first time this frame is used to draw, or if the frame is discarded.
41 void SubmitCompositorFrame( 41 void SubmitCompositorFrame(
42 std::unique_ptr<cc::CompositorFrame> frame, 42 cc::CompositorFrame frame,
43 const base::Callback<void(cc::SurfaceDrawStatus)>& callback); 43 const base::Callback<void(cc::SurfaceDrawStatus)>& callback);
44 44
45 // TODO(fsamuel): This is used for surface hittesting and should not be 45 // TODO(fsamuel): This is used for surface hittesting and should not be
46 // exposed outside of DisplayCompositor. 46 // exposed outside of DisplayCompositor.
47 const cc::SurfaceId& surface_id() const { return surface_id_; } 47 const cc::SurfaceId& surface_id() const { return surface_id_; }
48 48
49 // This requests the display CompositorFrame be rendered and given to the 49 // This requests the display CompositorFrame be rendered and given to the
50 // callback within CopyOutputRequest. 50 // callback within CopyOutputRequest.
51 void RequestCopyOfOutput( 51 void RequestCopyOfOutput(
52 std::unique_ptr<cc::CopyOutputRequest> output_request); 52 std::unique_ptr<cc::CopyOutputRequest> output_request);
(...skipping 18 matching lines...) Expand all
71 cc::SurfaceId surface_id_; 71 cc::SurfaceId surface_id_;
72 72
73 gfx::Size display_size_; 73 gfx::Size display_size_;
74 std::unique_ptr<cc::Display> display_; 74 std::unique_ptr<cc::Display> display_;
75 DISALLOW_COPY_AND_ASSIGN(DisplayCompositor); 75 DISALLOW_COPY_AND_ASSIGN(DisplayCompositor);
76 }; 76 };
77 77
78 } // namespace mus 78 } // namespace mus
79 79
80 #endif // COMPONENTS_MUS_SURFACES_DISPLAY_COMPOSITOR_H_ 80 #endif // COMPONENTS_MUS_SURFACES_DISPLAY_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « components/mus/gpu/display_compositor/compositor_frame_sink_impl.cc ('k') | components/mus/surfaces/display_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698