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

Side by Side Diff: media/mojo/services/mojo_renderer_service.h

Issue 1978973002: Moves video frame callbacks from VideoFrameCompositor to Renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes media_bit_reader_fuzzer link error Created 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_ 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_
6 #define MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_ 6 #define MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 STATE_PLAYING, 57 STATE_PLAYING,
58 STATE_ERROR 58 STATE_ERROR
59 }; 59 };
60 60
61 // RendererClient implementation. 61 // RendererClient implementation.
62 void OnError(PipelineStatus status) final; 62 void OnError(PipelineStatus status) final;
63 void OnEnded() final; 63 void OnEnded() final;
64 void OnStatisticsUpdate(const PipelineStatistics& stats) final; 64 void OnStatisticsUpdate(const PipelineStatistics& stats) final;
65 void OnBufferingStateChange(BufferingState state) final; 65 void OnBufferingStateChange(BufferingState state) final;
66 void OnWaitingForDecryptionKey() final; 66 void OnWaitingForDecryptionKey() final;
67 void OnVideoNaturalSizeChange(const gfx::Size& size) final;
68 void OnVideoOpacityChange(bool opaque) final;
67 69
68 // Called when the DemuxerStreamProviderShim is ready to go (has a config, 70 // Called when the DemuxerStreamProviderShim is ready to go (has a config,
69 // pipe handle, etc) and can be handed off to a renderer for use. 71 // pipe handle, etc) and can be handed off to a renderer for use.
70 void OnStreamReady(const mojo::Callback<void(bool)>& callback); 72 void OnStreamReady(const mojo::Callback<void(bool)>& callback);
71 73
72 // Called when |audio_renderer_| initialization has completed. 74 // Called when |audio_renderer_| initialization has completed.
73 void OnRendererInitializeDone(const mojo::Callback<void(bool)>& callback, 75 void OnRendererInitializeDone(const mojo::Callback<void(bool)>& callback,
74 PipelineStatus status); 76 PipelineStatus status);
75 77
76 // Periodically polls the media time from the renderer and notifies the client 78 // Periodically polls the media time from the renderer and notifies the client
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 114
113 base::WeakPtr<MojoRendererService> weak_this_; 115 base::WeakPtr<MojoRendererService> weak_this_;
114 base::WeakPtrFactory<MojoRendererService> weak_factory_; 116 base::WeakPtrFactory<MojoRendererService> weak_factory_;
115 117
116 DISALLOW_COPY_AND_ASSIGN(MojoRendererService); 118 DISALLOW_COPY_AND_ASSIGN(MojoRendererService);
117 }; 119 };
118 120
119 } // namespace media 121 } // namespace media
120 122
121 #endif // MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_ 123 #endif // MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698