| 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 case gfx::BufferFormat::ATCIA: | 266 case gfx::BufferFormat::ATCIA: |
| 267 return "ATCIA"; | 267 return "ATCIA"; |
| 268 case gfx::BufferFormat::DXT1: | 268 case gfx::BufferFormat::DXT1: |
| 269 return "DXT1"; | 269 return "DXT1"; |
| 270 case gfx::BufferFormat::DXT5: | 270 case gfx::BufferFormat::DXT5: |
| 271 return "DXT5"; | 271 return "DXT5"; |
| 272 case gfx::BufferFormat::ETC1: | 272 case gfx::BufferFormat::ETC1: |
| 273 return "ETC1"; | 273 return "ETC1"; |
| 274 case gfx::BufferFormat::R_8: | 274 case gfx::BufferFormat::R_8: |
| 275 return "R_8"; | 275 return "R_8"; |
| 276 case gfx::BufferFormat::R_16: |
| 277 return "R_16"; |
| 276 case gfx::BufferFormat::RG_88: | 278 case gfx::BufferFormat::RG_88: |
| 277 return "RG_88"; | 279 return "RG_88"; |
| 278 case gfx::BufferFormat::BGR_565: | 280 case gfx::BufferFormat::BGR_565: |
| 279 return "BGR_565"; | 281 return "BGR_565"; |
| 280 case gfx::BufferFormat::RGBA_4444: | 282 case gfx::BufferFormat::RGBA_4444: |
| 281 return "RGBA_4444"; | 283 return "RGBA_4444"; |
| 282 case gfx::BufferFormat::RGBX_8888: | 284 case gfx::BufferFormat::RGBX_8888: |
| 283 return "RGBX_8888"; | 285 return "RGBX_8888"; |
| 284 case gfx::BufferFormat::RGBA_8888: | 286 case gfx::BufferFormat::RGBA_8888: |
| 285 return "RGBA_8888"; | 287 return "RGBA_8888"; |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 : WebUIController(web_ui) { | 558 : WebUIController(web_ui) { |
| 557 web_ui->AddMessageHandler(base::MakeUnique<GpuMessageHandler>()); | 559 web_ui->AddMessageHandler(base::MakeUnique<GpuMessageHandler>()); |
| 558 | 560 |
| 559 // Set up the chrome://gpu/ source. | 561 // Set up the chrome://gpu/ source. |
| 560 BrowserContext* browser_context = | 562 BrowserContext* browser_context = |
| 561 web_ui->GetWebContents()->GetBrowserContext(); | 563 web_ui->GetWebContents()->GetBrowserContext(); |
| 562 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); | 564 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); |
| 563 } | 565 } |
| 564 | 566 |
| 565 } // namespace content | 567 } // namespace content |
| OLD | NEW |