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

Side by Side Diff: components/exo/compositor_frame_sink.h

Issue 2701663003: CompositorFrameSinkSupportClient::WillDraw needs to take in arguments (Closed)
Patch Set: c Created 3 years, 10 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 COMPONENTS_EXO_EXO_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef COMPONENTS_EXO_EXO_COMPOSITOR_FRAME_SINK_H_
6 #define COMPONENTS_EXO_EXO_COMPOSITOR_FRAME_SINK_H_ 6 #define COMPONENTS_EXO_EXO_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include "cc/ipc/compositor_frame.mojom.h" 8 #include "cc/ipc/compositor_frame.mojom.h"
9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" 9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h"
10 #include "cc/resources/transferable_resource.h" 10 #include "cc/resources/transferable_resource.h"
(...skipping 20 matching lines...) Expand all
31 cc::CompositorFrame frame) override; 31 cc::CompositorFrame frame) override;
32 void EvictFrame() override; 32 void EvictFrame() override;
33 void Require(const cc::LocalSurfaceId& local_surface_id, 33 void Require(const cc::LocalSurfaceId& local_surface_id,
34 const cc::SurfaceSequence& sequence) override; 34 const cc::SurfaceSequence& sequence) override;
35 void Satisfy(const cc::SurfaceSequence& sequence) override; 35 void Satisfy(const cc::SurfaceSequence& sequence) override;
36 36
37 // Overridden from cc::CompositorFrameSinkSupportClient: 37 // Overridden from cc::CompositorFrameSinkSupportClient:
38 void DidReceiveCompositorFrameAck() override; 38 void DidReceiveCompositorFrameAck() override;
39 void OnBeginFrame(const cc::BeginFrameArgs& args) override; 39 void OnBeginFrame(const cc::BeginFrameArgs& args) override;
40 void ReclaimResources(const cc::ReturnedResourceArray& resources) override; 40 void ReclaimResources(const cc::ReturnedResourceArray& resources) override;
41 void WillDrawSurface() override; 41 void WillDrawSurface(const cc::LocalSurfaceId& local_surface_id,
42 const gfx::Rect& damage_rect) override;
42 43
43 private: 44 private:
44 cc::CompositorFrameSinkSupport support_; 45 cc::CompositorFrameSinkSupport support_;
45 CompositorFrameSinkHolder* const client_; 46 CompositorFrameSinkHolder* const client_;
46 47
47 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSink); 48 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSink);
48 }; 49 };
49 50
50 } // namespace exo 51 } // namespace exo
51 52
52 #endif // COMPONENTS_EXO_EXO_COMPOSITOR_FRAME_SINK_H_ 53 #endif // COMPONENTS_EXO_EXO_COMPOSITOR_FRAME_SINK_H_
OLDNEW
« no previous file with comments | « components/display_compositor/gpu_compositor_frame_sink.cc ('k') | components/exo/compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698