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

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

Issue 2814843002: gpu: GPU service scheduler. (Closed)
Patch Set: fix test dcheck failures Created 3 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 | « gpu/ipc/client/command_buffer_proxy_impl.h ('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 a7c730804a594879c095c8dd9a7b0e8a51122f38..61aa361233b6630d70264b7d11a82bc7f739d19b 100644
--- a/gpu/ipc/client/command_buffer_proxy_impl.cc
+++ b/gpu/ipc/client/command_buffer_proxy_impl.cc
@@ -60,7 +60,6 @@ CommandBufferProxyImpl::CommandBufferProxyImpl(int channel_id,
stream_id_(stream_id),
weak_this_(AsWeakPtr()) {
DCHECK(route_id);
- DCHECK_NE(stream_id, GPU_STREAM_INVALID);
}
// static
@@ -69,7 +68,7 @@ std::unique_ptr<CommandBufferProxyImpl> CommandBufferProxyImpl::Create(
gpu::SurfaceHandle surface_handle,
CommandBufferProxyImpl* share_group,
int32_t stream_id,
- gpu::GpuStreamPriority stream_priority,
+ gpu::SchedulingPriority stream_priority,
const gpu::gles2::ContextCreationAttribHelper& attribs,
const GURL& active_url,
scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
@@ -672,9 +671,6 @@ bool CommandBufferProxyImpl::CanWaitUnverifiedSyncToken(
// If waiting on a different stream, flush pending commands on that stream.
int32_t release_stream_id = sync_token.extra_data_field();
- if (release_stream_id == gpu::GPU_STREAM_INVALID)
- return false;
-
if (release_stream_id != stream_id_)
channel_->FlushPendingStream(release_stream_id);
« no previous file with comments | « gpu/ipc/client/command_buffer_proxy_impl.h ('k') | gpu/ipc/client/gpu_channel_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698