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

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

Issue 2848223003: Enforce constant size and device scale factor for surfaces (Closed)
Patch Set: Notify CFSSClient when a frame is rejected Created 3 years, 7 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 21 matching lines...) Expand all
32 // Notification for the client to generate a CompositorFrame. 32 // Notification for the client to generate a CompositorFrame.
33 virtual void OnBeginFrame(const BeginFrameArgs& args) = 0; 33 virtual void OnBeginFrame(const BeginFrameArgs& args) = 0;
34 34
35 // Returns resources sent to SubmitCompositorFrame to be reused or freed. 35 // Returns resources sent to SubmitCompositorFrame to be reused or freed.
36 virtual void ReclaimResources(const ReturnedResourceArray& resources) = 0; 36 virtual void ReclaimResources(const ReturnedResourceArray& resources) = 0;
37 37
38 // Called when surface is being scheduled for a draw. 38 // Called when surface is being scheduled for a draw.
39 virtual void WillDrawSurface(const LocalSurfaceId& local_surface_id, 39 virtual void WillDrawSurface(const LocalSurfaceId& local_surface_id,
40 const gfx::Rect& damage_rect) = 0; 40 const gfx::Rect& damage_rect) = 0;
41 41
42 // Called when an invalid CompositorFrame is received.
43 virtual void DidRejectCompositorFrame() = 0;
44
42 protected: 45 protected:
43 virtual ~CompositorFrameSinkSupportClient() {} 46 virtual ~CompositorFrameSinkSupportClient() {}
44 }; 47 };
45 48
46 } // namespace cc 49 } // namespace cc
47 50
48 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_ 51 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698