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

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

Issue 2786103003: Add half-float IOSurface GpuMemoryBuffer support (Closed)
Patch Set: Fix switch Created 3 years, 8 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 case gfx::BufferFormat::RGBA_4444: 282 case gfx::BufferFormat::RGBA_4444:
283 return "RGBA_4444"; 283 return "RGBA_4444";
284 case gfx::BufferFormat::RGBX_8888: 284 case gfx::BufferFormat::RGBX_8888:
285 return "RGBX_8888"; 285 return "RGBX_8888";
286 case gfx::BufferFormat::RGBA_8888: 286 case gfx::BufferFormat::RGBA_8888:
287 return "RGBA_8888"; 287 return "RGBA_8888";
288 case gfx::BufferFormat::BGRX_8888: 288 case gfx::BufferFormat::BGRX_8888:
289 return "BGRX_8888"; 289 return "BGRX_8888";
290 case gfx::BufferFormat::BGRA_8888: 290 case gfx::BufferFormat::BGRA_8888:
291 return "BGRA_8888"; 291 return "BGRA_8888";
292 case gfx::BufferFormat::RGBA_F16:
293 return "RGBA_F16";
292 case gfx::BufferFormat::YVU_420: 294 case gfx::BufferFormat::YVU_420:
293 return "YVU_420"; 295 return "YVU_420";
294 case gfx::BufferFormat::YUV_420_BIPLANAR: 296 case gfx::BufferFormat::YUV_420_BIPLANAR:
295 return "YUV_420_BIPLANAR"; 297 return "YUV_420_BIPLANAR";
296 case gfx::BufferFormat::UYVY_422: 298 case gfx::BufferFormat::UYVY_422:
297 return "UYVY_422"; 299 return "UYVY_422";
298 } 300 }
299 NOTREACHED(); 301 NOTREACHED();
300 return nullptr; 302 return nullptr;
301 } 303 }
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698