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

Side by Side Diff: content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.h

Issue 2551083003: Add Satisfy() and Require() to MojoCompositorFrameSink (Closed)
Patch Set: Rebase; changed LOG to DLOG Created 4 years 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 CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 18 matching lines...) Expand all
29 29
30 // cc::mojom::MojoCompositorFrameSink implementation. 30 // cc::mojom::MojoCompositorFrameSink implementation.
31 void SubmitCompositorFrame(const cc::LocalFrameId& local_frame_id, 31 void SubmitCompositorFrame(const cc::LocalFrameId& local_frame_id,
32 cc::CompositorFrame frame) override; 32 cc::CompositorFrame frame) override;
33 void SetNeedsBeginFrame(bool needs_begin_frame) override; 33 void SetNeedsBeginFrame(bool needs_begin_frame) override;
34 void AddSurfaceReferences( 34 void AddSurfaceReferences(
35 const std::vector<cc::SurfaceReference>& references) override; 35 const std::vector<cc::SurfaceReference>& references) override;
36 void RemoveSurfaceReferences( 36 void RemoveSurfaceReferences(
37 const std::vector<cc::SurfaceReference>& references) override; 37 const std::vector<cc::SurfaceReference>& references) override;
38 void EvictFrame() override; 38 void EvictFrame() override;
39 void Require(const cc::LocalFrameId& local_frame_id,
40 const cc::SurfaceSequence& sequence) override;
41 void Satisfy(const cc::SurfaceSequence& sequence) override;
39 42
40 // cc::SurfaceFactoryClient implementation. 43 // cc::SurfaceFactoryClient implementation.
41 void ReturnResources(const cc::ReturnedResourceArray& resources) override; 44 void ReturnResources(const cc::ReturnedResourceArray& resources) override;
42 void WillDrawSurface(const cc::LocalFrameId& id, 45 void WillDrawSurface(const cc::LocalFrameId& id,
43 const gfx::Rect& damage_rect) override; 46 const gfx::Rect& damage_rect) override;
44 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; 47 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override;
45 48
46 private: 49 private:
47 void DidReceiveCompositorFrameAck(); 50 void DidReceiveCompositorFrameAck();
48 51
49 cc::SurfaceId surface_id_; 52 cc::SurfaceId surface_id_;
50 std::unique_ptr<cc::SurfaceFactory> surface_factory_; 53 std::unique_ptr<cc::SurfaceFactory> surface_factory_;
51 cc::mojom::MojoCompositorFrameSinkClientPtr client_; 54 cc::mojom::MojoCompositorFrameSinkClientPtr client_;
52 int ack_pending_count_ = 0; 55 int ack_pending_count_ = 0;
53 cc::ReturnedResourceArray surface_returned_resources_; 56 cc::ReturnedResourceArray surface_returned_resources_;
54 57
55 DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasCompositorFrameSink); 58 DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasCompositorFrameSink);
56 }; 59 };
57 60
58 } // namespace content 61 } // namespace content
59 62
60 #endif // CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_ H_ 63 #endif // CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_ H_
OLDNEW
« no previous file with comments | « cc/surfaces/compositor_frame_sink_support.cc ('k') | content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698