Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(694)

Side by Side Diff: content/browser/gpu/gpu_internals_ui.cc

Issue 2920793005: gpu: support R16 GPUMemoryBuffer (Closed)
Patch Set: mac fix Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698