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

Unified Diff: gpu/ipc/client/command_buffer_proxy_impl.cc

Issue 1949023005: gpu: Add flag for enabling asynchronous worker context. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase fix Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/fake_compositor_dependencies.cc ('k') | gpu/ipc/client/gpu_channel_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/client/command_buffer_proxy_impl.cc
diff --git a/gpu/ipc/client/command_buffer_proxy_impl.cc b/gpu/ipc/client/command_buffer_proxy_impl.cc
index daeaa0b8936ade41ca74211a1cd28ca744507a6a..5605f457118bfe0269f08d237616689ae994e195 100644
--- a/gpu/ipc/client/command_buffer_proxy_impl.cc
+++ b/gpu/ipc/client/command_buffer_proxy_impl.cc
@@ -60,7 +60,7 @@ CommandBufferProxyImpl::CommandBufferProxyImpl(
weak_this_(AsWeakPtr()),
callback_thread_(base::ThreadTaskRunnerHandle::Get()) {
DCHECK(channel_);
- DCHECK(stream_id);
+ DCHECK_NE(stream_id, GPU_STREAM_INVALID);
}
CommandBufferProxyImpl::~CommandBufferProxyImpl() {
@@ -580,7 +580,7 @@ bool CommandBufferProxyImpl::CanWaitUnverifiedSyncToken(
// If waiting on a different stream, flush pending commands on that stream.
const int32_t release_stream_id = sync_token->extra_data_field();
- if (release_stream_id == 0)
+ if (release_stream_id == gpu::GPU_STREAM_INVALID)
return false;
if (release_stream_id != stream_id_)
« no previous file with comments | « content/test/fake_compositor_dependencies.cc ('k') | gpu/ipc/client/gpu_channel_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698