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

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

Issue 2930143004: Add DIRECT_COMPOSITION GpuMemoryBuffer type.
Patch Set: fix build 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
« no previous file with comments | « no previous file | gpu/ipc/client/BUILD.gn » ('j') | gpu/ipc/service/gpu_memory_buffer_factory_win.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 NOTREACHED(); 299 NOTREACHED();
300 return nullptr; 300 return nullptr;
301 } 301 }
302 302
303 const char* BufferUsageToString(gfx::BufferUsage usage) { 303 const char* BufferUsageToString(gfx::BufferUsage usage) {
304 switch (usage) { 304 switch (usage) {
305 case gfx::BufferUsage::GPU_READ: 305 case gfx::BufferUsage::GPU_READ:
306 return "GPU_READ"; 306 return "GPU_READ";
307 case gfx::BufferUsage::SCANOUT: 307 case gfx::BufferUsage::SCANOUT:
308 return "SCANOUT"; 308 return "SCANOUT";
309 case gfx::BufferUsage::SCANOUT_ASYNC:
310 return "SCANOUT_ASYNC";
309 case gfx::BufferUsage::SCANOUT_CPU_READ_WRITE: 311 case gfx::BufferUsage::SCANOUT_CPU_READ_WRITE:
310 return "SCANOUT_CPU_READ_WRITE"; 312 return "SCANOUT_CPU_READ_WRITE";
311 case gfx::BufferUsage::GPU_READ_CPU_READ_WRITE: 313 case gfx::BufferUsage::GPU_READ_CPU_READ_WRITE:
312 return "GPU_READ_CPU_READ_WRITE"; 314 return "GPU_READ_CPU_READ_WRITE";
313 case gfx::BufferUsage::GPU_READ_CPU_READ_WRITE_PERSISTENT: 315 case gfx::BufferUsage::GPU_READ_CPU_READ_WRITE_PERSISTENT:
314 return "GPU_READ_CPU_READ_WRITE_PERSISTENT"; 316 return "GPU_READ_CPU_READ_WRITE_PERSISTENT";
315 } 317 }
316 NOTREACHED(); 318 NOTREACHED();
317 return nullptr; 319 return nullptr;
318 } 320 }
(...skipping 237 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
« no previous file with comments | « no previous file | gpu/ipc/client/BUILD.gn » ('j') | gpu/ipc/service/gpu_memory_buffer_factory_win.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698