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::RG_88: |
| 274 return "RG_88"; |
273 case gfx::BufferFormat::BGR_565: | 275 case gfx::BufferFormat::BGR_565: |
274 return "BGR_565"; | 276 return "BGR_565"; |
275 case gfx::BufferFormat::RGBA_4444: | 277 case gfx::BufferFormat::RGBA_4444: |
276 return "RGBA_4444"; | 278 return "RGBA_4444"; |
277 case gfx::BufferFormat::RGBX_8888: | 279 case gfx::BufferFormat::RGBX_8888: |
278 return "RGBX_8888"; | 280 return "RGBX_8888"; |
279 case gfx::BufferFormat::RGBA_8888: | 281 case gfx::BufferFormat::RGBA_8888: |
280 return "RGBA_8888"; | 282 return "RGBA_8888"; |
281 case gfx::BufferFormat::BGRX_8888: | 283 case gfx::BufferFormat::BGRX_8888: |
282 return "BGRX_8888"; | 284 return "BGRX_8888"; |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 : WebUIController(web_ui) { | 549 : WebUIController(web_ui) { |
548 web_ui->AddMessageHandler(new GpuMessageHandler()); | 550 web_ui->AddMessageHandler(new GpuMessageHandler()); |
549 | 551 |
550 // Set up the chrome://gpu/ source. | 552 // Set up the chrome://gpu/ source. |
551 BrowserContext* browser_context = | 553 BrowserContext* browser_context = |
552 web_ui->GetWebContents()->GetBrowserContext(); | 554 web_ui->GetWebContents()->GetBrowserContext(); |
553 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); | 555 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); |
554 } | 556 } |
555 | 557 |
556 } // namespace content | 558 } // namespace content |
OLD | NEW |