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

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

Issue 2757953002: DisplayCompositor should enforce invariant that frame size and device scale factor are fixed (Closed)
Patch Set: Created 3 years, 9 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 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 9
10 namespace gfx { 10 namespace gfx {
(...skipping 20 matching lines...) Expand all
31 // Notification for the client to generate a CompositorFrame. 31 // Notification for the client to generate a CompositorFrame.
32 virtual void OnBeginFrame(const BeginFrameArgs& args) = 0; 32 virtual void OnBeginFrame(const BeginFrameArgs& args) = 0;
33 33
34 // Returns resources sent to SubmitCompositorFrame to be reused or freed. 34 // Returns resources sent to SubmitCompositorFrame to be reused or freed.
35 virtual void ReclaimResources(const ReturnedResourceArray& resources) = 0; 35 virtual void ReclaimResources(const ReturnedResourceArray& resources) = 0;
36 36
37 // Called when surface is being scheduled for a draw. 37 // Called when surface is being scheduled for a draw.
38 virtual void WillDrawSurface(const LocalSurfaceId& local_surface_id, 38 virtual void WillDrawSurface(const LocalSurfaceId& local_surface_id,
39 const gfx::Rect& damage_rect) = 0; 39 const gfx::Rect& damage_rect) = 0;
40 40
41 virtual void OnBadFrameReceived() {}
42
41 protected: 43 protected:
42 virtual ~CompositorFrameSinkSupportClient() {} 44 virtual ~CompositorFrameSinkSupportClient() {}
43 }; 45 };
44 46
45 } // namespace cc 47 } // namespace cc
46 48
47 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_ 49 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698