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

Side by Side Diff: media/video/gpu_memory_buffer_video_frame_pool.cc

Issue 1406213005: [tracing] Add names to memory-infra dumpers for debugging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@memory-infra-runtime
Patch Set: Rebase + fix android Created 5 years, 1 month 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
« no previous file with comments | « media/filters/vpx_video_decoder.cc ('k') | sql/connection.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "media/video/gpu_memory_buffer_video_frame_pool.h" 5 #include "media/video/gpu_memory_buffer_video_frame_pool.h"
6 6
7 #include <GLES2/gl2.h> 7 #include <GLES2/gl2.h>
8 #include <GLES2/gl2ext.h> 8 #include <GLES2/gl2ext.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 714
715 GpuMemoryBufferVideoFramePool::GpuMemoryBufferVideoFramePool() {} 715 GpuMemoryBufferVideoFramePool::GpuMemoryBufferVideoFramePool() {}
716 716
717 GpuMemoryBufferVideoFramePool::GpuMemoryBufferVideoFramePool( 717 GpuMemoryBufferVideoFramePool::GpuMemoryBufferVideoFramePool(
718 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, 718 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner,
719 const scoped_refptr<base::TaskRunner>& worker_task_runner, 719 const scoped_refptr<base::TaskRunner>& worker_task_runner,
720 GpuVideoAcceleratorFactories* gpu_factories) 720 GpuVideoAcceleratorFactories* gpu_factories)
721 : pool_impl_( 721 : pool_impl_(
722 new PoolImpl(media_task_runner, worker_task_runner, gpu_factories)) { 722 new PoolImpl(media_task_runner, worker_task_runner, gpu_factories)) {
723 base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider( 723 base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider(
724 pool_impl_.get(), media_task_runner); 724 pool_impl_.get(), "GpuMemoryBufferVideoFramePool", media_task_runner);
725 } 725 }
726 726
727 GpuMemoryBufferVideoFramePool::~GpuMemoryBufferVideoFramePool() { 727 GpuMemoryBufferVideoFramePool::~GpuMemoryBufferVideoFramePool() {
728 base::trace_event::MemoryDumpManager::GetInstance()->UnregisterDumpProvider( 728 base::trace_event::MemoryDumpManager::GetInstance()->UnregisterDumpProvider(
729 pool_impl_.get()); 729 pool_impl_.get());
730 } 730 }
731 731
732 void GpuMemoryBufferVideoFramePool::MaybeCreateHardwareFrame( 732 void GpuMemoryBufferVideoFramePool::MaybeCreateHardwareFrame(
733 const scoped_refptr<VideoFrame>& video_frame, 733 const scoped_refptr<VideoFrame>& video_frame,
734 const FrameReadyCB& frame_ready_cb) { 734 const FrameReadyCB& frame_ready_cb) {
735 DCHECK(video_frame); 735 DCHECK(video_frame);
736 pool_impl_->CreateHardwareFrame(video_frame, frame_ready_cb); 736 pool_impl_->CreateHardwareFrame(video_frame, frame_ready_cb);
737 } 737 }
738 738
739 } // namespace media 739 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/vpx_video_decoder.cc ('k') | sql/connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698