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" |
13 #include "base/memory/ptr_util.h" | |
no sievers
2016/04/18 21:05:33
nit: unused
Mostyn Bramley-Moore
2016/04/18 21:47:01
Removed.
| |
12 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
13 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
14 #include "base/stl_util.h" | 16 #include "base/stl_util.h" |
15 #include "base/thread_task_runner_handle.h" | 17 #include "base/thread_task_runner_handle.h" |
16 #include "build/build_config.h" | 18 #include "build/build_config.h" |
17 #include "content/common/gpu/media/gpu_video_decode_accelerator_factory_impl.h" | 19 #include "content/common/gpu/media/gpu_video_decode_accelerator_factory_impl.h" |
18 #include "gpu/command_buffer/common/command_buffer.h" | 20 #include "gpu/command_buffer/common/command_buffer.h" |
19 #include "gpu/command_buffer/service/gpu_preferences.h" | 21 #include "gpu/command_buffer/service/gpu_preferences.h" |
20 #include "gpu/ipc/service/gpu_channel.h" | 22 #include "gpu/ipc/service/gpu_channel.h" |
21 #include "gpu/ipc/service/gpu_channel_manager.h" | 23 #include "gpu/ipc/service/gpu_channel_manager.h" |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
515 GLenum target = texture_ref->texture()->target(); | 517 GLenum target = texture_ref->texture()->target(); |
516 gpu::gles2::TextureManager* texture_manager = | 518 gpu::gles2::TextureManager* texture_manager = |
517 stub_->decoder()->GetContextGroup()->texture_manager(); | 519 stub_->decoder()->GetContextGroup()->texture_manager(); |
518 DCHECK(!texture_ref->texture()->IsLevelCleared(target, 0)); | 520 DCHECK(!texture_ref->texture()->IsLevelCleared(target, 0)); |
519 texture_manager->SetLevelCleared(texture_ref.get(), target, 0, true); | 521 texture_manager->SetLevelCleared(texture_ref.get(), target, 0, true); |
520 } | 522 } |
521 uncleared_textures_.erase(it); | 523 uncleared_textures_.erase(it); |
522 } | 524 } |
523 | 525 |
524 } // namespace content | 526 } // namespace content |
OLD | NEW |