| Index: cc/resources/resource_provider.h
|
| diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h
|
| index f671fb5e04d3f0c4dde62182a64c9b3ec5396189..33cfe94276a754e33ac31f6c1067ed8a7959db42 100644
|
| --- a/cc/resources/resource_provider.h
|
| +++ b/cc/resources/resource_provider.h
|
| @@ -131,6 +131,7 @@ class CC_EXPORT ResourceProvider
|
| ResourceType default_resource_type() const { return default_resource_type_; }
|
| ResourceType GetResourceType(ResourceId id);
|
| GLenum GetResourceTextureTarget(ResourceId id);
|
| + ResourceFormat GetResourceFormat(ResourceId id);
|
| bool IsImmutable(ResourceId id);
|
| TextureHint GetTextureHint(ResourceId id);
|
|
|
| @@ -158,6 +159,12 @@ class CC_EXPORT ResourceProvider
|
| std::unique_ptr<SingleReleaseCallbackImpl> release_callback_impl,
|
| bool read_lock_fences_enabled);
|
|
|
| + ResourceId CreateResourceFromTextureMailbox(
|
| + const TextureMailbox& mailbox,
|
| + ResourceFormat format,
|
| + std::unique_ptr<SingleReleaseCallbackImpl> release_callback_impl,
|
| + bool read_lock_fences_enabled);
|
| +
|
| void DeleteResource(ResourceId id);
|
|
|
| // Update pixels from image, copying source_rect (in image) to dest_offset (in
|
| @@ -464,6 +471,9 @@ class CC_EXPORT ResourceProvider
|
|
|
| // For tests only!
|
| void CreateForTesting(ResourceId id);
|
| + void SetYUVHighbitResourceFormatForTesting(ResourceFormat format) {
|
| + yuv_highbit_resource_format_ = format;
|
| + }
|
|
|
| // Sets the current read fence. If a resource is locked for read
|
| // and has read fences enabled, the resource will not allow writes
|
|
|