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

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 2705073003: Remove ScopedVector from content/renderer/. (Closed)
Patch Set: Rebase only Created 3 years, 10 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 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory>
11 #include <set> 12 #include <set>
12 #include <string> 13 #include <string>
13 #include <vector> 14 #include <vector>
14 15
15 #include "base/cancelable_callback.h" 16 #include "base/cancelable_callback.h"
16 #include "base/macros.h" 17 #include "base/macros.h"
17 #include "base/memory/memory_coordinator_client.h" 18 #include "base/memory/memory_coordinator_client.h"
18 #include "base/memory/memory_pressure_listener.h" 19 #include "base/memory/memory_pressure_listener.h"
19 #include "base/memory/ref_counted.h" 20 #include "base/memory/ref_counted.h"
20 #include "base/metrics/user_metrics_action.h" 21 #include "base/metrics/user_metrics_action.h"
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 // A lazily initiated thread on which file operations are run. 659 // A lazily initiated thread on which file operations are run.
659 std::unique_ptr<base::Thread> file_thread_; 660 std::unique_ptr<base::Thread> file_thread_;
660 661
661 // May be null if overridden by ContentRendererClient. 662 // May be null if overridden by ContentRendererClient.
662 std::unique_ptr<blink::scheduler::WebThreadBase> compositor_thread_; 663 std::unique_ptr<blink::scheduler::WebThreadBase> compositor_thread_;
663 664
664 // Utility class to provide GPU functionalities to media. 665 // Utility class to provide GPU functionalities to media.
665 // TODO(dcastagna): This should be just one scoped_ptr once 666 // TODO(dcastagna): This should be just one scoped_ptr once
666 // http://crbug.com/580386 is fixed. 667 // http://crbug.com/580386 is fixed.
667 // NOTE(dcastagna): At worst this accumulates a few bytes per context lost. 668 // NOTE(dcastagna): At worst this accumulates a few bytes per context lost.
668 ScopedVector<content::RendererGpuVideoAcceleratorFactories> gpu_factories_; 669 std::vector<std::unique_ptr<RendererGpuVideoAcceleratorFactories>>
670 gpu_factories_;
669 671
670 // Thread for running multimedia operations (e.g., video decoding). 672 // Thread for running multimedia operations (e.g., video decoding).
671 std::unique_ptr<base::Thread> media_thread_; 673 std::unique_ptr<base::Thread> media_thread_;
672 674
673 // Will point to appropriate task runner after initialization, 675 // Will point to appropriate task runner after initialization,
674 // regardless of whether |compositor_thread_| is overriden. 676 // regardless of whether |compositor_thread_| is overriden.
675 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_; 677 scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner_;
676 678
677 // Pool of workers used for raster operations (e.g., tile rasterization). 679 // Pool of workers used for raster operations (e.g., tile rasterization).
678 scoped_refptr<CategorizedWorkerPool> categorized_worker_pool_; 680 scoped_refptr<CategorizedWorkerPool> categorized_worker_pool_;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 775 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
774 }; 776 };
775 777
776 #if defined(COMPILER_MSVC) 778 #if defined(COMPILER_MSVC)
777 #pragma warning(pop) 779 #pragma warning(pop)
778 #endif 780 #endif
779 781
780 } // namespace content 782 } // namespace content
781 783
782 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 784 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_video_encoder_host.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698