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

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

Issue 2647583002: Switching to CompositorFrameSinkSupport in android_webview::SurfacesInstance (Closed)
Patch Set: c 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/surfaces/compositor_frame_sink_support.cc ('k') | cc/surfaces/display_client.h » ('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 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 CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_ 5 #ifndef CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_
6 #define CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_ 6 #define CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_
7 7
8 #include "cc/resources/returned_resource.h" 8 #include "cc/resources/returned_resource.h"
9 #include "cc/surfaces/display_client.h"
9 10
10 namespace cc { 11 namespace cc {
11 12
12 struct BeginFrameArgs; 13 struct BeginFrameArgs;
13 14
14 class CompositorFrameSinkSupportClient { 15 class CompositorFrameSinkSupportClient : public DisplayClient {
danakj 2017/01/24 17:12:33 This is not what I would expect, I don't think it'
Saman Sami 2017/01/24 17:25:09 Done.
15 public: 16 public:
16 // Notification that the previous CompositorFrame given to 17 // Notification that the previous CompositorFrame given to
17 // SubmitCompositorFrame() has been processed and that another frame 18 // SubmitCompositorFrame() has been processed and that another frame
18 // can be submitted. This provides backpressure from the display compositor 19 // can be submitted. This provides backpressure from the display compositor
19 // so that frames are submitted only at the rate it can handle them. 20 // so that frames are submitted only at the rate it can handle them.
20 // TODO(fsamuel): This method ought not be necessary with unified BeginFrame. 21 // TODO(fsamuel): This method ought not be necessary with unified BeginFrame.
21 // However, there's a fair amount of cleanup and refactoring necessary to get 22 // However, there's a fair amount of cleanup and refactoring necessary to get
22 // rid of it. 23 // rid of it.
23 virtual void DidReceiveCompositorFrameAck() = 0; 24 virtual void DidReceiveCompositorFrameAck() = 0;
24 25
25 // Notification for the client to generate a CompositorFrame. 26 // Notification for the client to generate a CompositorFrame.
26 virtual void OnBeginFrame(const BeginFrameArgs& args) = 0; 27 virtual void OnBeginFrame(const BeginFrameArgs& args) = 0;
27 28
28 // Returns resources sent to SubmitCompositorFrame to be reused or freed. 29 // Returns resources sent to SubmitCompositorFrame to be reused or freed.
29 virtual void ReclaimResources(const ReturnedResourceArray& resources) = 0; 30 virtual void ReclaimResources(const ReturnedResourceArray& resources) = 0;
30 31
31 // Called when surface is being scheduled for a draw. 32 // Called when surface is being scheduled for a draw.
32 virtual void WillDrawSurface() = 0; 33 virtual void WillDrawSurface() = 0;
33 34
34 protected: 35 protected:
35 virtual ~CompositorFrameSinkSupportClient() {} 36 ~CompositorFrameSinkSupportClient() override {}
36 }; 37 };
37 38
38 } // namespace cc 39 } // namespace cc
39 40
40 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_ 41 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/surfaces/compositor_frame_sink_support.cc ('k') | cc/surfaces/display_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698