| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 case gfx::BufferFormat::ATCIA: | 263 case gfx::BufferFormat::ATCIA: |
| 264 return "ATCIA"; | 264 return "ATCIA"; |
| 265 case gfx::BufferFormat::DXT1: | 265 case gfx::BufferFormat::DXT1: |
| 266 return "DXT1"; | 266 return "DXT1"; |
| 267 case gfx::BufferFormat::DXT5: | 267 case gfx::BufferFormat::DXT5: |
| 268 return "DXT5"; | 268 return "DXT5"; |
| 269 case gfx::BufferFormat::ETC1: | 269 case gfx::BufferFormat::ETC1: |
| 270 return "ETC1"; | 270 return "ETC1"; |
| 271 case gfx::BufferFormat::R_8: | 271 case gfx::BufferFormat::R_8: |
| 272 return "R_8"; | 272 return "R_8"; |
| 273 case gfx::BufferFormat::R_16: |
| 274 return "R_16"; |
| 273 case gfx::BufferFormat::RG_88: | 275 case gfx::BufferFormat::RG_88: |
| 274 return "RG_88"; | 276 return "RG_88"; |
| 275 case gfx::BufferFormat::BGR_565: | 277 case gfx::BufferFormat::BGR_565: |
| 276 return "BGR_565"; | 278 return "BGR_565"; |
| 277 case gfx::BufferFormat::RGBA_4444: | 279 case gfx::BufferFormat::RGBA_4444: |
| 278 return "RGBA_4444"; | 280 return "RGBA_4444"; |
| 279 case gfx::BufferFormat::RGBX_8888: | 281 case gfx::BufferFormat::RGBX_8888: |
| 280 return "RGBX_8888"; | 282 return "RGBX_8888"; |
| 281 case gfx::BufferFormat::RGBA_8888: | 283 case gfx::BufferFormat::RGBA_8888: |
| 282 return "RGBA_8888"; | 284 return "RGBA_8888"; |
| (...skipping 270 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 |