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

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

Issue 2609253003: Remove ForceReclaimResources (Closed)
Patch Set: Make test cases / phases the same Created 3 years, 11 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/compositor_frame_sink.h ('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 29 matching lines...) Expand all
40 const FrameSinkId& frame_sink_id, 40 const FrameSinkId& frame_sink_id,
41 SurfaceManager* surface_manager, 41 SurfaceManager* surface_manager,
42 Display* display, 42 Display* display,
43 scoped_refptr<VulkanContextProvider> vulkan_context_provider); 43 scoped_refptr<VulkanContextProvider> vulkan_context_provider);
44 ~DirectCompositorFrameSink() override; 44 ~DirectCompositorFrameSink() override;
45 45
46 // CompositorFrameSink implementation. 46 // CompositorFrameSink implementation.
47 bool BindToClient(CompositorFrameSinkClient* client) override; 47 bool BindToClient(CompositorFrameSinkClient* client) override;
48 void DetachFromClient() override; 48 void DetachFromClient() override;
49 void SubmitCompositorFrame(CompositorFrame frame) override; 49 void SubmitCompositorFrame(CompositorFrame frame) override;
50 void ForceReclaimResources() override;
51 50
52 // SurfaceFactoryClient implementation. 51 // SurfaceFactoryClient implementation.
53 void ReturnResources(const ReturnedResourceArray& resources) override; 52 void ReturnResources(const ReturnedResourceArray& resources) override;
54 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; 53 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override;
55 54
56 // DisplayClient implementation. 55 // DisplayClient implementation.
57 void DisplayOutputSurfaceLost() override; 56 void DisplayOutputSurfaceLost() override;
58 void DisplayWillDrawAndSwap(bool will_draw_and_swap, 57 void DisplayWillDrawAndSwap(bool will_draw_and_swap,
59 const RenderPassList& render_passes) override; 58 const RenderPassList& render_passes) override;
60 void DisplayDidDrawAndSwap() override; 59 void DisplayDidDrawAndSwap() override;
(...skipping 12 matching lines...) Expand all
73 SurfaceFactory factory_; 72 SurfaceFactory factory_;
74 gfx::Size last_swap_frame_size_; 73 gfx::Size last_swap_frame_size_;
75 bool is_lost_ = false; 74 bool is_lost_ = false;
76 75
77 DISALLOW_COPY_AND_ASSIGN(DirectCompositorFrameSink); 76 DISALLOW_COPY_AND_ASSIGN(DirectCompositorFrameSink);
78 }; 77 };
79 78
80 } // namespace cc 79 } // namespace cc
81 80
82 #endif // CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_ 81 #endif // CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_
OLDNEW
« no previous file with comments | « cc/output/compositor_frame_sink.h ('k') | cc/surfaces/direct_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698