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 #include "content/renderer/media/render_media_client.h" | 5 #include "content/renderer/media/render_media_client.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/time/default_tick_clock.h" | 9 #include "base/time/default_tick_clock.h" |
10 #include "content/public/common/content_client.h" | 10 #include "content/public/common/content_client.h" |
11 #include "content/public/renderer/content_renderer_client.h" | 11 #include "content/public/renderer/content_renderer_client.h" |
12 #include "media/base/media_switches.h" | 12 #include "media/base/media_switches.h" |
13 #include "media/base/video_color_space.h" | 13 #include "media/base/video_color_space.h" |
14 #include "ui/base/ui_base_switches.h" | 14 #include "ui/display/display_switches.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 void RenderMediaClient::Initialize() { | 18 void RenderMediaClient::Initialize() { |
19 GetInstance(); | 19 GetInstance(); |
20 } | 20 } |
21 | 21 |
22 RenderMediaClient::RenderMediaClient() | 22 RenderMediaClient::RenderMediaClient() |
23 : has_updated_(false), | 23 : has_updated_(false), |
24 is_update_needed_(true), | 24 is_update_needed_(true), |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 tick_clock_.swap(tick_clock); | 215 tick_clock_.swap(tick_clock); |
216 } | 216 } |
217 | 217 |
218 // static | 218 // static |
219 RenderMediaClient* RenderMediaClient::GetInstance() { | 219 RenderMediaClient* RenderMediaClient::GetInstance() { |
220 static RenderMediaClient* client = new RenderMediaClient(); | 220 static RenderMediaClient* client = new RenderMediaClient(); |
221 return client; | 221 return client; |
222 } | 222 } |
223 | 223 |
224 } // namespace content | 224 } // namespace content |
OLD | NEW |