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

Side by Side Diff: media/mojo/clients/mojo_renderer.h

Issue 2282633002: Integrate Surface requests with MediaPlayerRenderer (Closed)
Patch Set: Fixed MojoRenderService constructor Created 4 years, 3 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_CLIENTS_MOJO_RENDERER_H_ 5 #ifndef MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_
6 #define MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_ 6 #define MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 void SetCdm(CdmContext* cdm_context, 49 void SetCdm(CdmContext* cdm_context,
50 const CdmAttachedCB& cdm_attached_cb) override; 50 const CdmAttachedCB& cdm_attached_cb) override;
51 void Flush(const base::Closure& flush_cb) override; 51 void Flush(const base::Closure& flush_cb) override;
52 void StartPlayingFrom(base::TimeDelta time) override; 52 void StartPlayingFrom(base::TimeDelta time) override;
53 void SetPlaybackRate(double playback_rate) override; 53 void SetPlaybackRate(double playback_rate) override;
54 void SetVolume(float volume) override; 54 void SetVolume(float volume) override;
55 base::TimeDelta GetMediaTime() override; 55 base::TimeDelta GetMediaTime() override;
56 bool HasAudio() override; 56 bool HasAudio() override;
57 bool HasVideo() override; 57 bool HasVideo() override;
58 58
59 using ReceiveSurfaceRequestTokenCB = base::Callback<void(bool, uint64_t)>;
60
61 // Asks |remote_renderer_| to register a request in the browser's
62 // ScopedSurfaceRequestManager, and returns the request's token.
63 void InitiateScopedSurfaceRequest(
64 ReceiveSurfaceRequestTokenCB receive_request_token_cb);
65
59 private: 66 private:
60 // mojom::RendererClient implementation, dispatched on the 67 // mojom::RendererClient implementation, dispatched on the
61 // |task_runner_|. 68 // |task_runner_|.
62 void OnTimeUpdate(base::TimeDelta time, base::TimeDelta max_time) override; 69 void OnTimeUpdate(base::TimeDelta time, base::TimeDelta max_time) override;
63 void OnBufferingStateChange(mojom::BufferingState state) override; 70 void OnBufferingStateChange(mojom::BufferingState state) override;
64 void OnEnded() override; 71 void OnEnded() override;
65 void OnError() override; 72 void OnError() override;
66 void OnVideoNaturalSizeChange(const gfx::Size& size) override; 73 void OnVideoNaturalSizeChange(const gfx::Size& size) override;
67 void OnVideoOpacityChange(bool opaque) override; 74 void OnVideoOpacityChange(bool opaque) override;
68 void OnWaitingForDecryptionKey() override; 75 void OnWaitingForDecryptionKey() override;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Lock used to serialize access for |time_|. 150 // Lock used to serialize access for |time_|.
144 mutable base::Lock lock_; 151 mutable base::Lock lock_;
145 base::TimeDelta time_; 152 base::TimeDelta time_;
146 153
147 DISALLOW_COPY_AND_ASSIGN(MojoRenderer); 154 DISALLOW_COPY_AND_ASSIGN(MojoRenderer);
148 }; 155 };
149 156
150 } // namespace media 157 } // namespace media
151 158
152 #endif // MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_ 159 #endif // MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698