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

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

Issue 2026253003: Migrate WaitableEvent to enum-based constructor in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WEvent_enums
Patch Set: Created 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/browser_gpu_memory_buffer_manager.h" 5 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 BrowserGpuMemoryBufferManager* g_gpu_memory_buffer_manager = nullptr; 137 BrowserGpuMemoryBufferManager* g_gpu_memory_buffer_manager = nullptr;
138 138
139 } // namespace 139 } // namespace
140 140
141 struct BrowserGpuMemoryBufferManager::CreateGpuMemoryBufferRequest { 141 struct BrowserGpuMemoryBufferManager::CreateGpuMemoryBufferRequest {
142 CreateGpuMemoryBufferRequest(const gfx::Size& size, 142 CreateGpuMemoryBufferRequest(const gfx::Size& size,
143 gfx::BufferFormat format, 143 gfx::BufferFormat format,
144 gfx::BufferUsage usage, 144 gfx::BufferUsage usage,
145 int client_id, 145 int client_id,
146 gpu::SurfaceHandle surface_handle) 146 gpu::SurfaceHandle surface_handle)
147 : event(true, false), 147 : event(base::WaitableEvent::ResetPolicy::MANUAL,
148 base::WaitableEvent::InitialState::NOT_SIGNALED),
148 size(size), 149 size(size),
149 format(format), 150 format(format),
150 usage(usage), 151 usage(usage),
151 client_id(client_id), 152 client_id(client_id),
152 surface_handle(surface_handle) {} 153 surface_handle(surface_handle) {}
153 ~CreateGpuMemoryBufferRequest() {} 154 ~CreateGpuMemoryBufferRequest() {}
154 base::WaitableEvent event; 155 base::WaitableEvent event;
155 gfx::Size size; 156 gfx::Size size;
156 gfx::BufferFormat format; 157 gfx::BufferFormat format;
157 gfx::BufferUsage usage; 158 gfx::BufferUsage usage;
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 : size(other.size), 841 : size(other.size),
841 type(other.type), 842 type(other.type),
842 format(other.format), 843 format(other.format),
843 usage(other.usage), 844 usage(other.usage),
844 gpu_host_id(other.gpu_host_id), 845 gpu_host_id(other.gpu_host_id),
845 buffer(std::move(other.buffer)) {} 846 buffer(std::move(other.buffer)) {}
846 847
847 BrowserGpuMemoryBufferManager::BufferInfo::~BufferInfo() {} 848 BrowserGpuMemoryBufferManager::BufferInfo::~BufferInfo() {}
848 849
849 } // namespace content 850 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/browser_gpu_channel_host_factory.cc ('k') | content/browser/indexed_db/indexed_db_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698