Commit b14d8781 authored by vikassoni's avatar vikassoni Committed by Commit Bot

Add CHECK's for debugging.

Add CHECK's to STreamTextureFactory and StreamTextureHostAndroid to
debug - https://bugs.chromium.org/p/chromium/issues/detail?id=984309.

Bug: 984309
Change-Id: I6c63bb6ee0e595e06c1368babb06966bea0238c1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1729832Reviewed-by: default avatarStefan Zager <szager@chromium.org>
Reviewed-by: default avatarEric Karl <ericrk@chromium.org>
Reviewed-by: default avatarFrank Liberato <liberato@chromium.org>
Commit-Queue: vikas soni <vikassoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#683265}
parent a652f156
...@@ -77,9 +77,12 @@ void StreamTextureProxy::CreateSharedImage( ...@@ -77,9 +77,12 @@ void StreamTextureProxy::CreateSharedImage(
const gfx::Size& size, const gfx::Size& size,
gpu::Mailbox* mailbox, gpu::Mailbox* mailbox,
gpu::SyncToken* unverified_sync_token) { gpu::SyncToken* unverified_sync_token) {
// TODO(vikassoni): Remove CHECK after debugging.
CHECK(host_);
*mailbox = host_->CreateSharedImage(size); *mailbox = host_->CreateSharedImage(size);
if (!mailbox) if (!mailbox)
return; return;
CHECK(host_);
*unverified_sync_token = host_->GenUnverifiedSyncToken(); *unverified_sync_token = host_->GenUnverifiedSyncToken();
} }
......
...@@ -85,6 +85,9 @@ gpu::Mailbox StreamTextureHost::CreateSharedImage(const gfx::Size& size) { ...@@ -85,6 +85,9 @@ gpu::Mailbox StreamTextureHost::CreateSharedImage(const gfx::Size& size) {
} }
gpu::SyncToken StreamTextureHost::GenUnverifiedSyncToken() { gpu::SyncToken StreamTextureHost::GenUnverifiedSyncToken() {
// TODO(vikassoni): Remove CHECK after debugging.
CHECK(channel_);
return gpu::SyncToken(gpu::CommandBufferNamespace::GPU_IO, return gpu::SyncToken(gpu::CommandBufferNamespace::GPU_IO,
gpu::CommandBufferIdFromChannelAndRoute( gpu::CommandBufferIdFromChannelAndRoute(
channel_->channel_id(), route_id_), channel_->channel_id(), route_id_),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment