OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chromecast/renderer/media/hole_frame_factory.h" | 5 #include "chromecast/renderer/media/hole_frame_factory.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "gpu/GLES2/gl2extchromium.h" | 9 #include "gpu/GLES2/gl2extchromium.h" |
10 #include "gpu/command_buffer/client/gles2_interface.h" | 10 #include "gpu/command_buffer/client/gles2_interface.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 ::media::PIXEL_FORMAT_XRGB, | 68 ::media::PIXEL_FORMAT_XRGB, |
69 gpu::MailboxHolder(mailbox_, sync_token_, GL_TEXTURE_2D), | 69 gpu::MailboxHolder(mailbox_, sync_token_, GL_TEXTURE_2D), |
70 ::media::VideoFrame::ReleaseMailboxCB(), | 70 ::media::VideoFrame::ReleaseMailboxCB(), |
71 size, // coded_size | 71 size, // coded_size |
72 gfx::Rect(size), // visible rect | 72 gfx::Rect(size), // visible rect |
73 size, // natural size | 73 size, // natural size |
74 base::TimeDelta()); // timestamp | 74 base::TimeDelta()); // timestamp |
75 CHECK(frame); | 75 CHECK(frame); |
76 frame->metadata()->SetBoolean(::media::VideoFrameMetadata::ALLOW_OVERLAY, | 76 frame->metadata()->SetBoolean(::media::VideoFrameMetadata::ALLOW_OVERLAY, |
77 true); | 77 true); |
| 78 frame->metadata()->SetBoolean(::media::VideoFrameMetadata::DECODER_OWNS_FRAME, |
| 79 true); |
78 return frame; | 80 return frame; |
79 } | 81 } |
80 | 82 |
81 } // namespace media | 83 } // namespace media |
82 } // namespace chromecast | 84 } // namespace chromecast |
OLD | NEW |