From 774cc114922affc48477a073e06642a806c9860b Mon Sep 17 00:00:00 2001 From: liberato Date: Fri, 15 Jan 2016 08:20:49 -0800 Subject: Add support for "unowned" service_id to Texture. Optionally, one may call Texture::SetUnownedServiceId() to provide a service id that will be returned for Texture::service_id(), but will not be deleted when the Texture is destroyed. The original service_id is also kept around, and will be deleted normally. Calling Texture::SetUnownedServiceId(0) will restore the original service_id. In either case, the texture is rebound to all OES_EXTERNAl units. For textures that are not OES_EXTERNAL, this call does nothing. Also updates AVDA's zero copy path to use this, to support WebGL. It creates a new texture object for the SurfaceTexture, and sets the unowned service_id for all PictureBuffer Textures to use it. BUG=540865 Review URL: https://codereview.chromium.org/1517783002 Cr-Commit-Position: refs/heads/master@{#369759} --- content/content_common.gypi | 1 + 1 file changed, 1 insertion(+) (limited to 'content/content_common.gypi') diff --git a/content/content_common.gypi b/content/content_common.gypi index 806f63f..f18b3b4 100644 --- a/content/content_common.gypi +++ b/content/content_common.gypi @@ -808,6 +808,7 @@ 'common/gpu/media/avda_codec_image.cc', 'common/gpu/media/avda_codec_image.h', 'common/gpu/media/avda_return_on_failure.h', + 'common/gpu/media/avda_shared_state.cc', 'common/gpu/media/avda_shared_state.h', 'common/gpu/media/avda_state_provider.h', ], -- cgit v1.1