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 "content/common/gpu/media/avda_codec_image.h" | 5 #include "content/common/gpu/media/avda_codec_image.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
| 9 #include <memory> |
| 10 |
9 #include "base/metrics/histogram_macros.h" | 11 #include "base/metrics/histogram_macros.h" |
10 #include "content/common/gpu/media/avda_shared_state.h" | 12 #include "content/common/gpu/media/avda_shared_state.h" |
11 #include "gpu/command_buffer/service/context_group.h" | 13 #include "gpu/command_buffer/service/context_group.h" |
12 #include "gpu/command_buffer/service/context_state.h" | 14 #include "gpu/command_buffer/service/context_state.h" |
13 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 15 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
14 #include "gpu/command_buffer/service/texture_manager.h" | 16 #include "gpu/command_buffer/service/texture_manager.h" |
15 #include "ui/gl/android/surface_texture.h" | 17 #include "ui/gl/android/surface_texture.h" |
16 #include "ui/gl/gl_context.h" | 18 #include "ui/gl/gl_context.h" |
17 #include "ui/gl/scoped_make_current.h" | 19 #include "ui/gl/scoped_make_current.h" |
18 | 20 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 } | 234 } |
233 | 235 |
234 memcpy(matrix, gl_matrix_, sizeof(gl_matrix_)); | 236 memcpy(matrix, gl_matrix_, sizeof(gl_matrix_)); |
235 } | 237 } |
236 | 238 |
237 bool AVDACodecImage::IsCodecBufferOutstanding() const { | 239 bool AVDACodecImage::IsCodecBufferOutstanding() const { |
238 return codec_buffer_index_ != kInvalidCodecBufferIndex && media_codec_; | 240 return codec_buffer_index_ != kInvalidCodecBufferIndex && media_codec_; |
239 } | 241 } |
240 | 242 |
241 } // namespace content | 243 } // namespace content |
OLD | NEW |