OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/gpu_video_decode_accelerator.h" | 5 #include "content/common/gpu/media/gpu_video_decode_accelerator.h" |
6 | 6 |
| 7 #include <memory> |
7 #include <vector> | 8 #include <vector> |
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/logging.h" | 12 #include "base/logging.h" |
12 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
13 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
14 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
15 #include "base/thread_task_runner_handle.h" | 16 #include "base/thread_task_runner_handle.h" |
16 #include "build/build_config.h" | 17 #include "build/build_config.h" |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 GLenum target = texture_ref->texture()->target(); | 516 GLenum target = texture_ref->texture()->target(); |
516 gpu::gles2::TextureManager* texture_manager = | 517 gpu::gles2::TextureManager* texture_manager = |
517 stub_->decoder()->GetContextGroup()->texture_manager(); | 518 stub_->decoder()->GetContextGroup()->texture_manager(); |
518 DCHECK(!texture_ref->texture()->IsLevelCleared(target, 0)); | 519 DCHECK(!texture_ref->texture()->IsLevelCleared(target, 0)); |
519 texture_manager->SetLevelCleared(texture_ref.get(), target, 0, true); | 520 texture_manager->SetLevelCleared(texture_ref.get(), target, 0, true); |
520 } | 521 } |
521 uncleared_textures_.erase(it); | 522 uncleared_textures_.erase(it); |
522 } | 523 } |
523 | 524 |
524 } // namespace content | 525 } // namespace content |
OLD | NEW |