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

Side by Side Diff: content/renderer/media/render_media_client.cc

Issue 2742383006: Display: set color_depth and depth_per_component value based on kEnableHDROutput (Closed)
Patch Set: rebase Created 3 years, 9 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
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 #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
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
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura_unittest.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698