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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 case gfx::BufferFormat::ATCIA: | 260 case gfx::BufferFormat::ATCIA: |
261 return "ATCIA"; | 261 return "ATCIA"; |
262 case gfx::BufferFormat::DXT1: | 262 case gfx::BufferFormat::DXT1: |
263 return "DXT1"; | 263 return "DXT1"; |
264 case gfx::BufferFormat::DXT5: | 264 case gfx::BufferFormat::DXT5: |
265 return "DXT5"; | 265 return "DXT5"; |
266 case gfx::BufferFormat::ETC1: | 266 case gfx::BufferFormat::ETC1: |
267 return "ETC1"; | 267 return "ETC1"; |
268 case gfx::BufferFormat::R_8: | 268 case gfx::BufferFormat::R_8: |
269 return "R_8"; | 269 return "R_8"; |
| 270 case gfx::BufferFormat::RG_88: |
| 271 return "RG_88"; |
270 case gfx::BufferFormat::BGR_565: | 272 case gfx::BufferFormat::BGR_565: |
271 return "BGR_565"; | 273 return "BGR_565"; |
272 case gfx::BufferFormat::RGBA_4444: | 274 case gfx::BufferFormat::RGBA_4444: |
273 return "RGBA_4444"; | 275 return "RGBA_4444"; |
274 case gfx::BufferFormat::RGBX_8888: | 276 case gfx::BufferFormat::RGBX_8888: |
275 return "RGBX_8888"; | 277 return "RGBX_8888"; |
276 case gfx::BufferFormat::RGBA_8888: | 278 case gfx::BufferFormat::RGBA_8888: |
277 return "RGBA_8888"; | 279 return "RGBA_8888"; |
278 case gfx::BufferFormat::BGRX_8888: | 280 case gfx::BufferFormat::BGRX_8888: |
279 return "BGRX_8888"; | 281 return "BGRX_8888"; |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 : WebUIController(web_ui) { | 547 : WebUIController(web_ui) { |
546 web_ui->AddMessageHandler(new GpuMessageHandler()); | 548 web_ui->AddMessageHandler(new GpuMessageHandler()); |
547 | 549 |
548 // Set up the chrome://gpu/ source. | 550 // Set up the chrome://gpu/ source. |
549 BrowserContext* browser_context = | 551 BrowserContext* browser_context = |
550 web_ui->GetWebContents()->GetBrowserContext(); | 552 web_ui->GetWebContents()->GetBrowserContext(); |
551 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); | 553 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); |
552 } | 554 } |
553 | 555 |
554 } // namespace content | 556 } // namespace content |
OLD | NEW |