Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Side by Side Diff: content/common/gpu/media/gpu_video_decode_accelerator.cc

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698