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

Unified Diff: cc/output/gl_renderer.cc

Issue 165393003: gpu: Generate mailboxes on client side (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 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 | « no previous file | cc/resources/video_resource_updater.cc » ('j') | gpu/command_buffer/common/mailbox.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.cc
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
index 7febfffb9aa3971cedb21997951a9708d4ea62f5..e4122821f489e6e7858f59946a6b783345c8c9d6 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -2246,11 +2246,6 @@ void GLRenderer::GetFramebufferPixelsAsync(
gpu::Mailbox mailbox;
if (own_mailbox) {
GLC(gl_, gl_->GenMailboxCHROMIUM(mailbox.name));
- if (mailbox.IsZero()) {
- gl_->DeleteTextures(1, &texture_id);
- request->SendEmptyResult();
- return;
- }
} else {
mailbox = request->texture_mailbox().mailbox();
DCHECK_EQ(static_cast<unsigned>(GL_TEXTURE_2D),
« no previous file with comments | « no previous file | cc/resources/video_resource_updater.cc » ('j') | gpu/command_buffer/common/mailbox.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698