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

Unified Diff: content/common/gpu/stream_texture_android.cc

Issue 191933002: This is initial API support required for enabling SurfaceTexture backed zero-copy for Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build issues Created 6 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/stream_texture_android.cc
diff --git a/content/common/gpu/stream_texture_android.cc b/content/common/gpu/stream_texture_android.cc
index 805534c911f200defd3f9a5fc1863b6752a54030..d48891aa87d0c3cd68162e1d496d8146610f6aac 100644
--- a/content/common/gpu/stream_texture_android.cc
+++ b/content/common/gpu/stream_texture_android.cc
@@ -65,7 +65,7 @@ int32 StreamTexture::Create(
StreamTexture::StreamTexture(GpuCommandBufferStub* owner_stub,
int32 route_id,
uint32 texture_id)
- : surface_texture_(new gfx::SurfaceTexture(texture_id)),
+ : surface_texture_(gfx::SurfaceTexture::Create(texture_id)),
size_(0, 0),
has_valid_frame_(false),
has_pending_frame_(false),

Powered by Google App Engine
This is Rietveld 408576698