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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 case gfx::BufferFormat::RGBA_4444: | 284 case gfx::BufferFormat::RGBA_4444: |
285 return "RGBA_4444"; | 285 return "RGBA_4444"; |
286 case gfx::BufferFormat::RGBX_8888: | 286 case gfx::BufferFormat::RGBX_8888: |
287 return "RGBX_8888"; | 287 return "RGBX_8888"; |
288 case gfx::BufferFormat::RGBA_8888: | 288 case gfx::BufferFormat::RGBA_8888: |
289 return "RGBA_8888"; | 289 return "RGBA_8888"; |
290 case gfx::BufferFormat::BGRX_8888: | 290 case gfx::BufferFormat::BGRX_8888: |
291 return "BGRX_8888"; | 291 return "BGRX_8888"; |
292 case gfx::BufferFormat::BGRA_8888: | 292 case gfx::BufferFormat::BGRA_8888: |
293 return "BGRA_8888"; | 293 return "BGRA_8888"; |
| 294 case gfx::BufferFormat::RGBA_F16: |
| 295 return "RGBA_F16"; |
294 case gfx::BufferFormat::YVU_420: | 296 case gfx::BufferFormat::YVU_420: |
295 return "YVU_420"; | 297 return "YVU_420"; |
296 case gfx::BufferFormat::YUV_420_BIPLANAR: | 298 case gfx::BufferFormat::YUV_420_BIPLANAR: |
297 return "YUV_420_BIPLANAR"; | 299 return "YUV_420_BIPLANAR"; |
298 case gfx::BufferFormat::UYVY_422: | 300 case gfx::BufferFormat::UYVY_422: |
299 return "UYVY_422"; | 301 return "UYVY_422"; |
300 } | 302 } |
301 NOTREACHED(); | 303 NOTREACHED(); |
302 return nullptr; | 304 return nullptr; |
303 } | 305 } |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 : WebUIController(web_ui) { | 560 : WebUIController(web_ui) { |
559 web_ui->AddMessageHandler(base::MakeUnique<GpuMessageHandler>()); | 561 web_ui->AddMessageHandler(base::MakeUnique<GpuMessageHandler>()); |
560 | 562 |
561 // Set up the chrome://gpu/ source. | 563 // Set up the chrome://gpu/ source. |
562 BrowserContext* browser_context = | 564 BrowserContext* browser_context = |
563 web_ui->GetWebContents()->GetBrowserContext(); | 565 web_ui->GetWebContents()->GetBrowserContext(); |
564 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); | 566 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); |
565 } | 567 } |
566 | 568 |
567 } // namespace content | 569 } // namespace content |
OLD | NEW |