| Index: cc/resources/video_resource_updater.h
|
| diff --git a/cc/resources/video_resource_updater.h b/cc/resources/video_resource_updater.h
|
| index a7ac7e5c7345cfcd55d71b41522949fc9c358c73..5a885a5edf45f27bf0b7838dd65c6173ccc6052e 100644
|
| --- a/cc/resources/video_resource_updater.h
|
| +++ b/cc/resources/video_resource_updater.h
|
| @@ -86,6 +86,10 @@ class CC_EXPORT VideoResourceUpdater {
|
| VideoFrameExternalResources CreateExternalResourcesFromVideoFrame(
|
| scoped_refptr<media::VideoFrame> video_frame);
|
|
|
| + void UseR16ForTesting(bool use_r16_for_testing) {
|
| + use_r16_for_testing_ = use_r16_for_testing;
|
| + }
|
| +
|
| private:
|
| class PlaneResource {
|
| public:
|
| @@ -184,6 +188,7 @@ class CC_EXPORT VideoResourceUpdater {
|
| const bool use_stream_video_draw_quad_;
|
| std::unique_ptr<media::SkCanvasVideoRenderer> video_renderer_;
|
| std::vector<uint8_t> upload_pixels_;
|
| + bool use_r16_for_testing_ = false;
|
|
|
| // Recycle resources so that we can reduce the number of allocations and
|
| // data transfers.
|
|
|