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

Side by Side Diff: components/mus/gles2/command_buffer_impl.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 12 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 | « components/mus/gles2/command_buffer_impl.h ('k') | components/mus/gles2/command_buffer_local.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "components/mus/gles2/command_buffer_impl.h" 5 #include "components/mus/gles2/command_buffer_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/macros.h"
8 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
9 #include "components/mus/gles2/command_buffer_driver.h" 10 #include "components/mus/gles2/command_buffer_driver.h"
10 #include "components/mus/gles2/command_buffer_impl_observer.h" 11 #include "components/mus/gles2/command_buffer_impl_observer.h"
11 #include "components/mus/gles2/command_buffer_type_conversions.h" 12 #include "components/mus/gles2/command_buffer_type_conversions.h"
12 #include "components/mus/gles2/gpu_state.h" 13 #include "components/mus/gles2/gpu_state.h"
13 #include "gpu/command_buffer/service/sync_point_manager.h" 14 #include "gpu/command_buffer/service/sync_point_manager.h"
14 15
15 namespace mus { 16 namespace mus {
16 17
17 namespace { 18 namespace {
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 void CommandBufferImpl::RetireSyncPoint(uint32_t sync_point) { 144 void CommandBufferImpl::RetireSyncPoint(uint32_t sync_point) {
144 gpu_state_->command_buffer_task_runner()->PostTask( 145 gpu_state_->command_buffer_task_runner()->PostTask(
145 driver_.get(), 146 driver_.get(),
146 base::Bind(&CommandBufferImpl::RetireSyncPointHelper, 147 base::Bind(&CommandBufferImpl::RetireSyncPointHelper,
147 base::Unretained(this), 148 base::Unretained(this),
148 sync_point)); 149 sync_point));
149 } 150 }
150 151
151 void CommandBufferImpl::CreateImage(int32_t id, 152 void CommandBufferImpl::CreateImage(int32_t id,
152 mojo::ScopedHandle memory_handle, 153 mojo::ScopedHandle memory_handle,
153 int32 type, 154 int32_t type,
154 mojo::SizePtr size, 155 mojo::SizePtr size,
155 int32_t format, 156 int32_t format,
156 int32_t internal_format) { 157 int32_t internal_format) {
157 gpu_state_->command_buffer_task_runner()->PostTask( 158 gpu_state_->command_buffer_task_runner()->PostTask(
158 driver_.get(), 159 driver_.get(),
159 base::Bind(&CommandBufferImpl::CreateImageHelper, 160 base::Bind(&CommandBufferImpl::CreateImageHelper,
160 base::Unretained(this), id, 161 base::Unretained(this), id,
161 base::Passed(&memory_handle), type, 162 base::Passed(&memory_handle), type,
162 base::Passed(&size), format, internal_format)); 163 base::Passed(&size), format, internal_format));
163 } 164 }
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 driver_.get(), 283 driver_.get(),
283 base::Bind(&CommandBufferImpl::DeleteHelper, base::Unretained(this))); 284 base::Bind(&CommandBufferImpl::DeleteHelper, base::Unretained(this)));
284 } 285 }
285 286
286 bool CommandBufferImpl::DeleteHelper() { 287 bool CommandBufferImpl::DeleteHelper() {
287 delete this; 288 delete this;
288 return true; 289 return true;
289 } 290 }
290 291
291 } // namespace mus 292 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/gles2/command_buffer_impl.h ('k') | components/mus/gles2/command_buffer_local.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698