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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 case gfx::BufferFormat::BGRA_8888: | 285 case gfx::BufferFormat::BGRA_8888: |
286 return "BGRA_8888"; | 286 return "BGRA_8888"; |
287 case gfx::BufferFormat::RGBA_F16: | 287 case gfx::BufferFormat::RGBA_F16: |
288 return "RGBA_F16"; | 288 return "RGBA_F16"; |
289 case gfx::BufferFormat::YVU_420: | 289 case gfx::BufferFormat::YVU_420: |
290 return "YVU_420"; | 290 return "YVU_420"; |
291 case gfx::BufferFormat::YUV_420_BIPLANAR: | 291 case gfx::BufferFormat::YUV_420_BIPLANAR: |
292 return "YUV_420_BIPLANAR"; | 292 return "YUV_420_BIPLANAR"; |
293 case gfx::BufferFormat::UYVY_422: | 293 case gfx::BufferFormat::UYVY_422: |
294 return "UYVY_422"; | 294 return "UYVY_422"; |
| 295 case gfx::BufferFormat::YUYV_422: |
| 296 return "YUYV_422"; |
295 } | 297 } |
296 NOTREACHED(); | 298 NOTREACHED(); |
297 return nullptr; | 299 return nullptr; |
298 } | 300 } |
299 | 301 |
300 const char* BufferUsageToString(gfx::BufferUsage usage) { | 302 const char* BufferUsageToString(gfx::BufferUsage usage) { |
301 switch (usage) { | 303 switch (usage) { |
302 case gfx::BufferUsage::GPU_READ: | 304 case gfx::BufferUsage::GPU_READ: |
303 return "GPU_READ"; | 305 return "GPU_READ"; |
304 case gfx::BufferUsage::SCANOUT: | 306 case gfx::BufferUsage::SCANOUT: |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 : WebUIController(web_ui) { | 555 : WebUIController(web_ui) { |
554 web_ui->AddMessageHandler(base::MakeUnique<GpuMessageHandler>()); | 556 web_ui->AddMessageHandler(base::MakeUnique<GpuMessageHandler>()); |
555 | 557 |
556 // Set up the chrome://gpu/ source. | 558 // Set up the chrome://gpu/ source. |
557 BrowserContext* browser_context = | 559 BrowserContext* browser_context = |
558 web_ui->GetWebContents()->GetBrowserContext(); | 560 web_ui->GetWebContents()->GetBrowserContext(); |
559 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); | 561 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); |
560 } | 562 } |
561 | 563 |
562 } // namespace content | 564 } // namespace content |
OLD | NEW |