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

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

Issue 2648633005: cros: Support YUYV format for GPU memory buffer video frames
Patch Set: Created 3 years, 11 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 case gfx::BufferFormat::BGRX_8888: 293 case gfx::BufferFormat::BGRX_8888:
294 return "BGRX_8888"; 294 return "BGRX_8888";
295 case gfx::BufferFormat::BGRA_8888: 295 case gfx::BufferFormat::BGRA_8888:
296 return "BGRA_8888"; 296 return "BGRA_8888";
297 case gfx::BufferFormat::YVU_420: 297 case gfx::BufferFormat::YVU_420:
298 return "YVU_420"; 298 return "YVU_420";
299 case gfx::BufferFormat::YUV_420_BIPLANAR: 299 case gfx::BufferFormat::YUV_420_BIPLANAR:
300 return "YUV_420_BIPLANAR"; 300 return "YUV_420_BIPLANAR";
301 case gfx::BufferFormat::UYVY_422: 301 case gfx::BufferFormat::UYVY_422:
302 return "UYVY_422"; 302 return "UYVY_422";
303 case gfx::BufferFormat::YUYV_422:
304 return "YUYV_422";
303 } 305 }
304 NOTREACHED(); 306 NOTREACHED();
305 return nullptr; 307 return nullptr;
306 } 308 }
307 309
308 const char* BufferUsageToString(gfx::BufferUsage usage) { 310 const char* BufferUsageToString(gfx::BufferUsage usage) {
309 switch (usage) { 311 switch (usage) {
310 case gfx::BufferUsage::GPU_READ: 312 case gfx::BufferUsage::GPU_READ:
311 return "GPU_READ"; 313 return "GPU_READ";
312 case gfx::BufferUsage::SCANOUT: 314 case gfx::BufferUsage::SCANOUT:
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
559 : WebUIController(web_ui) { 561 : WebUIController(web_ui) {
560 web_ui->AddMessageHandler(new GpuMessageHandler()); 562 web_ui->AddMessageHandler(new GpuMessageHandler());
561 563
562 // Set up the chrome://gpu/ source. 564 // Set up the chrome://gpu/ source.
563 BrowserContext* browser_context = 565 BrowserContext* browser_context =
564 web_ui->GetWebContents()->GetBrowserContext(); 566 web_ui->GetWebContents()->GetBrowserContext();
565 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource()); 567 WebUIDataSource::Add(browser_context, CreateGpuHTMLSource());
566 } 568 }
567 569
568 } // namespace content 570 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698