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

Unified Diff: content/common/gpu/media/android_deferred_rendering_backing_strategy.cc

Issue 1751323002: Allow multiple texture ids per picture buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
Index: content/common/gpu/media/android_deferred_rendering_backing_strategy.cc
diff --git a/content/common/gpu/media/android_deferred_rendering_backing_strategy.cc b/content/common/gpu/media/android_deferred_rendering_backing_strategy.cc
index 4948139a33027107faa12b33fb23cfa1810f8c27..1ecef538e15153ea8801328bd97b9277487d64f4 100644
--- a/content/common/gpu/media/android_deferred_rendering_backing_strategy.cc
+++ b/content/common/gpu/media/android_deferred_rendering_backing_strategy.cc
@@ -213,7 +213,8 @@ void AndroidDeferredRenderingBackingStrategy::AssignOnePictureBuffer(
// unless we make the texture transparent.
static const uint8_t rgba[] = {0, 0, 0, 0};
const gfx::Size size(1, 1);
- glBindTexture(GL_TEXTURE_2D, picture_buffer.texture_id());
+ DCHECK_LE(1u, picture_buffer.texture_ids().size());
+ glBindTexture(GL_TEXTURE_2D, picture_buffer.texture_ids()[0]);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, size.width(), size.height(), 0,
GL_RGBA, GL_UNSIGNED_BYTE, rgba);
}

Powered by Google App Engine
This is Rietveld 408576698