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

Side by Side Diff: mojo/gles2/command_buffer_client_impl.cc

Issue 1615253006: Removed last references to old sync points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed references in TestContextSupport Created 4 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
« no previous file with comments | « mojo/gles2/command_buffer_client_impl.h ('k') | mojo/gles2/gles2_impl.cc » ('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 "mojo/gles2/command_buffer_client_impl.h" 5 #include "mojo/gles2/command_buffer_client_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <limits> 10 #include <limits>
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 scoped_ptr<gfx::GpuMemoryBuffer> buffer(mus::MojoGpuMemoryBufferImpl::Create( 264 scoped_ptr<gfx::GpuMemoryBuffer> buffer(mus::MojoGpuMemoryBufferImpl::Create(
265 gfx::Size(static_cast<int>(width), static_cast<int>(height)), 265 gfx::Size(static_cast<int>(width), static_cast<int>(height)),
266 gpu::ImageFactory::DefaultBufferFormatForImageFormat(internalformat), 266 gpu::ImageFactory::DefaultBufferFormatForImageFormat(internalformat),
267 gfx::BufferUsage::SCANOUT)); 267 gfx::BufferUsage::SCANOUT));
268 if (!buffer) 268 if (!buffer)
269 return -1; 269 return -1;
270 270
271 return CreateImage(buffer->AsClientBuffer(), width, height, internalformat); 271 return CreateImage(buffer->AsClientBuffer(), width, height, internalformat);
272 } 272 }
273 273
274 uint32_t CommandBufferClientImpl::InsertSyncPoint() {
275 NOTREACHED();
276 return 0;
277 }
278
279 uint32_t CommandBufferClientImpl::InsertFutureSyncPoint() {
280 NOTREACHED();
281 return 0;
282 }
283
284 void CommandBufferClientImpl::RetireSyncPoint(uint32_t sync_point) {
285 NOTREACHED();
286 }
287
288 void CommandBufferClientImpl::SignalSyncPoint(uint32_t sync_point,
289 const base::Closure& callback) {
290 // TODO(piman)
291 NOTIMPLEMENTED();
292 }
293
294 void CommandBufferClientImpl::SignalQuery(uint32_t query, 274 void CommandBufferClientImpl::SignalQuery(uint32_t query,
295 const base::Closure& callback) { 275 const base::Closure& callback) {
296 // TODO(piman) 276 // TODO(piman)
297 NOTIMPLEMENTED(); 277 NOTIMPLEMENTED();
298 } 278 }
299 279
300 void CommandBufferClientImpl::DidLoseContext(int32_t lost_reason) { 280 void CommandBufferClientImpl::DidLoseContext(int32_t lost_reason) {
301 last_state_.error = gpu::error::kLostContext; 281 last_state_.error = gpu::error::kLostContext;
302 last_state_.context_lost_reason = 282 last_state_.context_lost_reason =
303 static_cast<gpu::error::ContextLostReason>(lost_reason); 283 static_cast<gpu::error::ContextLostReason>(lost_reason);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 362
383 // It is also safe to wait on the same context. 363 // It is also safe to wait on the same context.
384 if (sync_token->namespace_id() == gpu::CommandBufferNamespace::MOJO && 364 if (sync_token->namespace_id() == gpu::CommandBufferNamespace::MOJO &&
385 sync_token->command_buffer_id() == GetCommandBufferID()) 365 sync_token->command_buffer_id() == GetCommandBufferID())
386 return true; 366 return true;
387 367
388 return false; 368 return false;
389 } 369 }
390 370
391 } // namespace gles2 371 } // namespace gles2
OLDNEW
« no previous file with comments | « mojo/gles2/command_buffer_client_impl.h ('k') | mojo/gles2/gles2_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698