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

Side by Side Diff: cc/surfaces/direct_compositor_frame_sink.h

Issue 2349743004: cc: Remove things from OutputSurface and CompositorFrameSink. (Closed)
Patch Set: delete-stuff-cfs: comment-and-rebase Created 4 years, 3 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
« no previous file with comments | « cc/output/overlay_unittest.cc ('k') | cc/surfaces/direct_compositor_frame_sink.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_
6 #define CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_ 6 #define CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/threading/thread_checker.h" 9 #include "base/threading/thread_checker.h"
10 #include "cc/output/compositor_frame_sink.h" 10 #include "cc/output/compositor_frame_sink.h"
(...skipping 23 matching lines...) Expand all
34 scoped_refptr<ContextProvider> context_provider, 34 scoped_refptr<ContextProvider> context_provider,
35 scoped_refptr<ContextProvider> worker_context_provider); 35 scoped_refptr<ContextProvider> worker_context_provider);
36 DirectCompositorFrameSink( 36 DirectCompositorFrameSink(
37 SurfaceManager* surface_manager, 37 SurfaceManager* surface_manager,
38 SurfaceIdAllocator* allocator, 38 SurfaceIdAllocator* allocator,
39 Display* display, 39 Display* display,
40 scoped_refptr<VulkanContextProvider> vulkan_context_provider); 40 scoped_refptr<VulkanContextProvider> vulkan_context_provider);
41 ~DirectCompositorFrameSink() override; 41 ~DirectCompositorFrameSink() override;
42 42
43 // CompositorFrameSink implementation. 43 // CompositorFrameSink implementation.
44 bool BindToClient(CompositorFrameSinkClient* client) override;
45 void DetachFromClient() override;
44 void SwapBuffers(CompositorFrame frame) override; 46 void SwapBuffers(CompositorFrame frame) override;
45 bool BindToClient(CompositorFrameSinkClient* client) override;
46 void ForceReclaimResources() override; 47 void ForceReclaimResources() override;
47 void DetachFromClient() override;
48 void BindFramebuffer() override;
49 uint32_t GetFramebufferCopyTextureFormat() override;
50 48
51 // SurfaceFactoryClient implementation. 49 // SurfaceFactoryClient implementation.
52 void ReturnResources(const ReturnedResourceArray& resources) override; 50 void ReturnResources(const ReturnedResourceArray& resources) override;
53 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; 51 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override;
54 52
55 // DisplayClient implementation. 53 // DisplayClient implementation.
56 void DisplayOutputSurfaceLost() override; 54 void DisplayOutputSurfaceLost() override;
57 void DisplayWillDrawAndSwap(bool will_draw_and_swap, 55 void DisplayWillDrawAndSwap(bool will_draw_and_swap,
58 const RenderPassList& render_passes) override; 56 const RenderPassList& render_passes) override;
59 void DisplayDidDrawAndSwap() override; 57 void DisplayDidDrawAndSwap() override;
(...skipping 11 matching lines...) Expand all
71 SurfaceId delegated_surface_id_; 69 SurfaceId delegated_surface_id_;
72 gfx::Size last_swap_frame_size_; 70 gfx::Size last_swap_frame_size_;
73 bool is_lost_ = false; 71 bool is_lost_ = false;
74 72
75 DISALLOW_COPY_AND_ASSIGN(DirectCompositorFrameSink); 73 DISALLOW_COPY_AND_ASSIGN(DirectCompositorFrameSink);
76 }; 74 };
77 75
78 } // namespace cc 76 } // namespace cc
79 77
80 #endif // CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_ 78 #endif // CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_
OLDNEW
« no previous file with comments | « cc/output/overlay_unittest.cc ('k') | cc/surfaces/direct_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698