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

Side by Side Diff: media/player/movie.h

Issue 155396: Revert "Implemented injected message loops for PipelineImpl." (Closed)
Patch Set: Created 11 years, 5 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 | « media/base/pipeline_impl_unittest.cc ('k') | media/player/movie.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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 // Movie class for WTL forms to call to control the media pipeline. 5 // Movie class for WTL forms to call to control the media pipeline.
6 6
7 #ifndef MEDIA_PLAYER_MOVIE_H_ 7 #ifndef MEDIA_PLAYER_MOVIE_H_
8 #define MEDIA_PLAYER_MOVIE_H_ 8 #define MEDIA_PLAYER_MOVIE_H_
9 9
10 #include <tchar.h> 10 #include <tchar.h>
11 11
12 #include "base/scoped_ptr.h" 12 #include "base/scoped_ptr.h"
13 #include "base/singleton.h" 13 #include "base/singleton.h"
14 #include "base/thread.h"
15 14
16 class WtlVideoRenderer; 15 class WtlVideoRenderer;
17 16
18 namespace media { 17 namespace media {
19 18
20 class PipelineImpl; 19 class PipelineImpl;
21 20
22 class Movie : public Singleton<Movie> { 21 class Movie : public Singleton<Movie> {
23 public: 22 public:
24 // Open a movie. 23 // Open a movie.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // Get Enable/Disable OpenMP state. 83 // Get Enable/Disable OpenMP state.
85 bool GetOpenMpEnable(); 84 bool GetOpenMpEnable();
86 85
87 private: 86 private:
88 // Only allow Singleton to create and delete Movie. 87 // Only allow Singleton to create and delete Movie.
89 friend struct DefaultSingletonTraits<Movie>; 88 friend struct DefaultSingletonTraits<Movie>;
90 Movie(); 89 Movie();
91 virtual ~Movie(); 90 virtual ~Movie();
92 91
93 scoped_ptr<PipelineImpl> pipeline_; 92 scoped_ptr<PipelineImpl> pipeline_;
94 scoped_ptr<base::Thread> thread_;
95 93
96 bool enable_audio_; 94 bool enable_audio_;
97 bool enable_swscaler_; 95 bool enable_swscaler_;
98 bool enable_draw_; 96 bool enable_draw_;
99 bool enable_dump_yuv_file_; 97 bool enable_dump_yuv_file_;
100 bool enable_pause_; 98 bool enable_pause_;
101 bool enable_openmp_; 99 bool enable_openmp_;
102 int max_threads_; 100 int max_threads_;
103 float play_rate_; 101 float play_rate_;
104 HBITMAP movie_dib_; 102 HBITMAP movie_dib_;
105 HWND movie_hwnd_; 103 HWND movie_hwnd_;
106 104
107 DISALLOW_COPY_AND_ASSIGN(Movie); 105 DISALLOW_COPY_AND_ASSIGN(Movie);
108 }; 106 };
109 107
110 } // namespace media 108 } // namespace media
111 109
112 #endif // MEDIA_PLAYER_MOVIE_H_ 110 #endif // MEDIA_PLAYER_MOVIE_H_
113 111
OLDNEW
« no previous file with comments | « media/base/pipeline_impl_unittest.cc ('k') | media/player/movie.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698