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 CHROMECAST_RENDERER_MEDIA_CMA_RENDERER_H_ | 5 #ifndef CHROMECAST_RENDERER_MEDIA_CMA_RENDERER_H_ |
6 #define CHROMECAST_RENDERER_MEDIA_CMA_RENDERER_H_ | 6 #define CHROMECAST_RENDERER_MEDIA_CMA_RENDERER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 State state_; | 115 State state_; |
116 bool is_pending_transition_; | 116 bool is_pending_transition_; |
117 | 117 |
118 bool has_audio_; | 118 bool has_audio_; |
119 bool has_video_; | 119 bool has_video_; |
120 | 120 |
121 bool received_audio_eos_; | 121 bool received_audio_eos_; |
122 bool received_video_eos_; | 122 bool received_video_eos_; |
123 | 123 |
124 // Data members for helping the creation of the video hole frame. | 124 // Data members for helping the creation of the video hole frame. |
125 gfx::Size initial_natural_size_; | |
126 bool initial_video_hole_created_; | |
127 ::media::GpuVideoAcceleratorFactories* gpu_factories_; | 125 ::media::GpuVideoAcceleratorFactories* gpu_factories_; |
128 std::unique_ptr<HoleFrameFactory> hole_frame_factory_; | 126 std::unique_ptr<HoleFrameFactory> hole_frame_factory_; |
129 | 127 |
130 // Lock protecting access to |time_interpolator_|. | 128 // Lock protecting access to |time_interpolator_|. |
131 base::Lock time_interpolator_lock_; | 129 base::Lock time_interpolator_lock_; |
132 | 130 |
133 // base::TickClock used by |time_interpolator_|. | 131 // base::TickClock used by |time_interpolator_|. |
134 base::DefaultTickClock default_tick_clock_; | 132 base::DefaultTickClock default_tick_clock_; |
135 | 133 |
136 // Tracks the most recent media time update and provides interpolated values | 134 // Tracks the most recent media time update and provides interpolated values |
137 // as playback progresses. | 135 // as playback progresses. |
138 std::unique_ptr<::media::TimeDeltaInterpolator> time_interpolator_; | 136 std::unique_ptr<::media::TimeDeltaInterpolator> time_interpolator_; |
139 | 137 |
140 double playback_rate_; | 138 double playback_rate_; |
141 | 139 |
142 base::WeakPtr<CmaRenderer> weak_this_; | 140 base::WeakPtr<CmaRenderer> weak_this_; |
143 base::WeakPtrFactory<CmaRenderer> weak_factory_; | 141 base::WeakPtrFactory<CmaRenderer> weak_factory_; |
144 | 142 |
145 DISALLOW_COPY_AND_ASSIGN(CmaRenderer); | 143 DISALLOW_COPY_AND_ASSIGN(CmaRenderer); |
146 }; | 144 }; |
147 | 145 |
148 } // namespace media | 146 } // namespace media |
149 } // namespace chromecast | 147 } // namespace chromecast |
150 | 148 |
151 #endif // CHROMECAST_RENDERER_MEDIA_CMA_RENDERER_H_ | 149 #endif // CHROMECAST_RENDERER_MEDIA_CMA_RENDERER_H_ |
OLD | NEW |