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

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

Issue 2409923002: cc: Rename SwapBuffers on CompositorFrameSink to SubmitCompositorFrame (Closed)
Patch Set: swap-to-submit: rebase Created 4 years, 2 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/scheduler/scheduler_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 26 matching lines...) Expand all
37 DirectCompositorFrameSink( 37 DirectCompositorFrameSink(
38 const FrameSinkId& frame_sink_id, 38 const FrameSinkId& frame_sink_id,
39 SurfaceManager* surface_manager, 39 SurfaceManager* surface_manager,
40 Display* display, 40 Display* display,
41 scoped_refptr<VulkanContextProvider> vulkan_context_provider); 41 scoped_refptr<VulkanContextProvider> vulkan_context_provider);
42 ~DirectCompositorFrameSink() override; 42 ~DirectCompositorFrameSink() override;
43 43
44 // CompositorFrameSink implementation. 44 // CompositorFrameSink implementation.
45 bool BindToClient(CompositorFrameSinkClient* client) override; 45 bool BindToClient(CompositorFrameSinkClient* client) override;
46 void DetachFromClient() override; 46 void DetachFromClient() override;
47 void SwapBuffers(CompositorFrame frame) override; 47 void SubmitCompositorFrame(CompositorFrame frame) override;
48 void ForceReclaimResources() override; 48 void ForceReclaimResources() override;
49 49
50 // SurfaceFactoryClient implementation. 50 // SurfaceFactoryClient implementation.
51 void ReturnResources(const ReturnedResourceArray& resources) override; 51 void ReturnResources(const ReturnedResourceArray& resources) override;
52 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; 52 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override;
53 53
54 // DisplayClient implementation. 54 // DisplayClient implementation.
55 void DisplayOutputSurfaceLost() override; 55 void DisplayOutputSurfaceLost() override;
56 void DisplayWillDrawAndSwap(bool will_draw_and_swap, 56 void DisplayWillDrawAndSwap(bool will_draw_and_swap,
57 const RenderPassList& render_passes) override; 57 const RenderPassList& render_passes) override;
(...skipping 13 matching lines...) Expand all
71 SurfaceFactory factory_; 71 SurfaceFactory factory_;
72 gfx::Size last_swap_frame_size_; 72 gfx::Size last_swap_frame_size_;
73 bool is_lost_ = false; 73 bool is_lost_ = false;
74 74
75 DISALLOW_COPY_AND_ASSIGN(DirectCompositorFrameSink); 75 DISALLOW_COPY_AND_ASSIGN(DirectCompositorFrameSink);
76 }; 76 };
77 77
78 } // namespace cc 78 } // namespace cc
79 79
80 #endif // CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_ 80 #endif // CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_
OLDNEW
« no previous file with comments | « cc/scheduler/scheduler_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