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

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

Issue 2644653003: Make OffscreenCanvas animation in sync with its placeholder canvas's parent frame rate (Closed)
Patch Set: rebase again 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 CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_PRO VIDER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_PRO VIDER_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_PRO VIDER_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_PRO VIDER_IMPL_H_
7 7
8 #include <unordered_map> 8 #include <unordered_map>
9 9
10 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.h " 10 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.h "
(...skipping 15 matching lines...) Expand all
26 // blink::mojom::OffscreenCanvasCompositorFrameSinkProvider implementation. 26 // blink::mojom::OffscreenCanvasCompositorFrameSinkProvider implementation.
27 void CreateCompositorFrameSink( 27 void CreateCompositorFrameSink(
28 const cc::FrameSinkId& frame_sink_id, 28 const cc::FrameSinkId& frame_sink_id,
29 cc::mojom::MojoCompositorFrameSinkClientPtr client, 29 cc::mojom::MojoCompositorFrameSinkClientPtr client,
30 cc::mojom::MojoCompositorFrameSinkRequest request) override; 30 cc::mojom::MojoCompositorFrameSinkRequest request) override;
31 31
32 cc::SurfaceManager* GetSurfaceManager(); 32 cc::SurfaceManager* GetSurfaceManager();
33 33
34 void OnCompositorFrameSinkClientConnectionLost( 34 void OnCompositorFrameSinkClientConnectionLost(
35 const cc::FrameSinkId& frame_sink_id); 35 const cc::FrameSinkId& frame_sink_id);
36 void OnCompositorFrameSinkClientDestroyed(
37 const cc::FrameSinkId& frame_sink_id);
36 38
37 private: 39 private:
38 std::unordered_map<cc::FrameSinkId, 40 std::unordered_map<cc::FrameSinkId,
39 std::unique_ptr<OffscreenCanvasCompositorFrameSink>, 41 std::unique_ptr<OffscreenCanvasCompositorFrameSink>,
40 cc::FrameSinkIdHash> 42 cc::FrameSinkIdHash>
41 compositor_frame_sinks_; 43 compositor_frame_sinks_;
42 44
43 mojo::BindingSet<blink::mojom::OffscreenCanvasCompositorFrameSinkProvider> 45 mojo::BindingSet<blink::mojom::OffscreenCanvasCompositorFrameSinkProvider>
44 bindings_; 46 bindings_;
45 47
46 DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasCompositorFrameSinkProviderImpl); 48 DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasCompositorFrameSinkProviderImpl);
47 }; 49 };
48 50
49 } // namespace content 51 } // namespace content
50 52
51 #endif // CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_ PROVIDER_IMPL_H_ 53 #endif // CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_ PROVIDER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698