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

Side by Side Diff: chromecast/renderer/media/cma_renderer.h

Issue 1978973002: Moves video frame callbacks from VideoFrameCompositor to Renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addresses comments 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
« no previous file with comments | « chromecast/browser/media/cast_renderer.cc ('k') | chromecast/renderer/media/cma_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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_
OLDNEW
« no previous file with comments | « chromecast/browser/media/cast_renderer.cc ('k') | chromecast/renderer/media/cma_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698