OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/fake_video_decode_accelerator.h" | 5 #include "content/common/gpu/media/fake_video_decode_accelerator.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <string.h> |
8 | 9 |
9 #include "base/bind.h" | 10 #include "base/bind.h" |
10 #include "base/location.h" | 11 #include "base/location.h" |
11 #include "base/thread_task_runner_handle.h" | 12 #include "base/thread_task_runner_handle.h" |
12 #include "media/base/bitstream_buffer.h" | 13 #include "media/base/bitstream_buffer.h" |
13 #include "media/base/limits.h" | 14 #include "media/base/limits.h" |
14 #include "ui/gl/gl_context.h" | 15 #include "ui/gl/gl_context.h" |
15 #include "ui/gl/gl_implementation.h" | 16 #include "ui/gl/gl_implementation.h" |
16 #include "ui/gl/gl_surface.h" | 17 #include "ui/gl/gl_surface.h" |
17 #include "ui/gl/gl_surface_egl.h" | 18 #include "ui/gl/gl_surface_egl.h" |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 // Bitstream no longer needed. | 176 // Bitstream no longer needed. |
176 client_->NotifyEndOfBitstreamBuffer(bitstream_id); | 177 client_->NotifyEndOfBitstreamBuffer(bitstream_id); |
177 if (flushing_ && queued_bitstream_ids_.empty()) { | 178 if (flushing_ && queued_bitstream_ids_.empty()) { |
178 flushing_ = false; | 179 flushing_ = false; |
179 client_->NotifyFlushDone(); | 180 client_->NotifyFlushDone(); |
180 } | 181 } |
181 } | 182 } |
182 } | 183 } |
183 | 184 |
184 } // namespace content | 185 } // namespace content |
OLD | NEW |