OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/gpu/gpu_internals_ui.h" | 5 #include "content/browser/gpu/gpu_internals_ui.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 }, | 262 }, |
263 { | 263 { |
264 "flash_stage3d", | 264 "flash_stage3d", |
265 flags & GPU_FEATURE_TYPE_FLASH_STAGE3D, | 265 flags & GPU_FEATURE_TYPE_FLASH_STAGE3D, |
266 command_line.HasSwitch(switches::kDisableFlashStage3d), | 266 command_line.HasSwitch(switches::kDisableFlashStage3d), |
267 "Using Stage3d in Flash has been disabled, either via about:flags or" | 267 "Using Stage3d in Flash has been disabled, either via about:flags or" |
268 " command line.", | 268 " command line.", |
269 false | 269 false |
270 }, | 270 }, |
271 { | 271 { |
| 272 "flash_stage3d_baseline", |
| 273 flags & (content::GPU_FEATURE_TYPE_FLASH_STAGE3D_BASELINE | |
| 274 content::GPU_FEATURE_TYPE_FLASH_STAGE3D), |
| 275 command_line.HasSwitch(switches::kDisableFlashStage3d), |
| 276 "Using Stage3d Baseline profile in Flash has been disabled, either" |
| 277 " via about:flags or command line.", |
| 278 false |
| 279 }, |
| 280 { |
272 "texture_sharing", | 281 "texture_sharing", |
273 flags & GPU_FEATURE_TYPE_TEXTURE_SHARING, | 282 flags & GPU_FEATURE_TYPE_TEXTURE_SHARING, |
274 command_line.HasSwitch(switches::kDisableImageTransportSurface), | 283 command_line.HasSwitch(switches::kDisableImageTransportSurface), |
275 "Sharing textures between processes has been disabled, either via" | 284 "Sharing textures between processes has been disabled, either via" |
276 " about:flags or command line.", | 285 " about:flags or command line.", |
277 false | 286 false |
278 }, | 287 }, |
279 { | 288 { |
280 "video_decode", | 289 "video_decode", |
281 flags & GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE, | 290 flags & GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE, |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 : WebUIController(web_ui) { | 617 : WebUIController(web_ui) { |
609 web_ui->AddMessageHandler(new GpuMessageHandler()); | 618 web_ui->AddMessageHandler(new GpuMessageHandler()); |
610 | 619 |
611 // Set up the chrome://gpu/ source. | 620 // Set up the chrome://gpu/ source. |
612 BrowserContext* browser_context = | 621 BrowserContext* browser_context = |
613 web_ui->GetWebContents()->GetBrowserContext(); | 622 web_ui->GetWebContents()->GetBrowserContext(); |
614 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); | 623 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); |
615 } | 624 } |
616 | 625 |
617 } // namespace content | 626 } // namespace content |
OLD | NEW |