| OLD | NEW |
| 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_IMPL_H_ | 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_RENDERER_IMPL_H_ |
| 6 #define MEDIA_MOJO_SERVICES_MOJO_RENDERER_IMPL_H_ | 6 #define MEDIA_MOJO_SERVICES_MOJO_RENDERER_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 bool HasAudio() override; | 51 bool HasAudio() override; |
| 52 bool HasVideo() override; | 52 bool HasVideo() override; |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 // interfaces::RendererClient implementation, dispatched on the | 55 // interfaces::RendererClient implementation, dispatched on the |
| 56 // |task_runner_|. | 56 // |task_runner_|. |
| 57 void OnTimeUpdate(int64_t time_usec, int64_t max_time_usec) override; | 57 void OnTimeUpdate(int64_t time_usec, int64_t max_time_usec) override; |
| 58 void OnBufferingStateChange(interfaces::BufferingState state) override; | 58 void OnBufferingStateChange(interfaces::BufferingState state) override; |
| 59 void OnEnded() override; | 59 void OnEnded() override; |
| 60 void OnError() override; | 60 void OnError() override; |
| 61 void OnVideoNaturalSizeChange(mojo::SizePtr size) override; |
| 62 void OnVideoOpacityChange(bool opaque) override; |
| 61 | 63 |
| 62 // Callback for connection error on |remote_renderer_|. | 64 // Callback for connection error on |remote_renderer_|. |
| 63 void OnConnectionError(); | 65 void OnConnectionError(); |
| 64 | 66 |
| 65 // Called when |remote_renderer_| has finished initializing. | 67 // Called when |remote_renderer_| has finished initializing. |
| 66 void OnInitialized(bool success); | 68 void OnInitialized(bool success); |
| 67 | 69 |
| 68 // |task_runner| on which all methods are invoked, except for GetMediaTime(), | 70 // |task_runner| on which all methods are invoked, except for GetMediaTime(), |
| 69 // which can be called on any thread. | 71 // which can be called on any thread. |
| 70 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 72 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 94 // Lock used to serialize access for |time_|. | 96 // Lock used to serialize access for |time_|. |
| 95 mutable base::Lock lock_; | 97 mutable base::Lock lock_; |
| 96 base::TimeDelta time_; | 98 base::TimeDelta time_; |
| 97 | 99 |
| 98 DISALLOW_COPY_AND_ASSIGN(MojoRendererImpl); | 100 DISALLOW_COPY_AND_ASSIGN(MojoRendererImpl); |
| 99 }; | 101 }; |
| 100 | 102 |
| 101 } // namespace media | 103 } // namespace media |
| 102 | 104 |
| 103 #endif // MEDIA_MOJO_SERVICES_MOJO_RENDERER_IMPL_H_ | 105 #endif // MEDIA_MOJO_SERVICES_MOJO_RENDERER_IMPL_H_ |
| OLD | NEW |