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

Unified Diff: components/exo/buffer.cc

Issue 2388653002: gpu: Add CHROMIUM_texture_from_image spec and fence support.
Patch Set: rebase Created 4 years, 1 month 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
Index: components/exo/buffer.cc
diff --git a/components/exo/buffer.cc b/components/exo/buffer.cc
index 9b1778d989d6c0250efff832d6372f401e15e129..0c771df3d66a9af9af0a44c9fa7e7f412b238e52 100644
--- a/components/exo/buffer.cc
+++ b/components/exo/buffer.cc
@@ -238,7 +238,7 @@ gpu::SyncToken Buffer::Texture::BindTexImage() {
gles2->ActiveTexture(GL_TEXTURE0);
gles2->BindTexture(texture_target_, texture_id_);
DCHECK_NE(image_id_, 0u);
- gles2->BindTexImage2DCHROMIUM(texture_target_, image_id_);
+ gles2->BindTexImage2DCHROMIUM(texture_target_, image_id_, 0);
// Generate a crypto-secure random mailbox name if not already done.
if (mailbox_.IsZero())
CreateGLTextureMailbox(gles2, texture_id_, texture_target_, &mailbox_);
@@ -284,7 +284,7 @@ gpu::SyncToken Buffer::Texture::CopyTexImage(Texture* destination,
gles2->ActiveTexture(GL_TEXTURE0);
gles2->BindTexture(texture_target_, texture_id_);
DCHECK_NE(image_id_, 0u);
- gles2->BindTexImage2DCHROMIUM(texture_target_, image_id_);
+ gles2->BindTexImage2DCHROMIUM(texture_target_, image_id_, 0);
gles2->CopyTextureCHROMIUM(texture_id_, destination->texture_id_,
internalformat_, GL_UNSIGNED_BYTE, false, false,
false);
« no previous file with comments | « components/display_compositor/buffer_queue_unittest.cc ('k') | gpu/GLES2/extensions/CHROMIUM/CHROMIUM_texture_from_image.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698