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

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

Issue 77023002: gpu: Add IOSurface backed GpuMemoryBuffer implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix overflow check Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « content/content_common.gypi ('k') | content/renderer/render_thread_impl.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 (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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/memory/memory_pressure_listener.h" 12 #include "base/memory/memory_pressure_listener.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "base/process/process_handle.h" 14 #include "base/process/process_handle.h"
15 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
16 #include "base/threading/thread_checker.h"
16 #include "base/timer/timer.h" 17 #include "base/timer/timer.h"
17 #include "build/build_config.h" 18 #include "build/build_config.h"
18 #include "content/child/child_thread.h" 19 #include "content/child/child_thread.h"
19 #include "content/common/content_export.h" 20 #include "content/common/content_export.h"
20 #include "content/common/gpu/client/gpu_channel_host.h" 21 #include "content/common/gpu/client/gpu_channel_host.h"
21 #include "content/public/renderer/render_thread.h" 22 #include "content/public/renderer/render_thread.h"
22 #include "content/renderer/media/renderer_gpu_video_accelerator_factories.h" 23 #include "content/renderer/media/renderer_gpu_video_accelerator_factories.h"
23 #include "ipc/ipc_channel_proxy.h" 24 #include "ipc/ipc_channel_proxy.h"
24 #include "ui/gfx/native_widget_types.h" 25 #include "ui/gfx/native_widget_types.h"
25 26
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 HistogramCustomizer histogram_customizer_; 500 HistogramCustomizer histogram_customizer_;
500 501
501 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; 502 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_;
502 503
503 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; 504 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_;
504 505
505 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; 506 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_;
506 507
507 base::ProcessId renderer_process_id_; 508 base::ProcessId renderer_process_id_;
508 509
510 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from
511 // multiple threads. Current allocation mechanism for IOSurface
512 // backed GpuMemoryBuffers prevent this. crbug.com/325045
513 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_;
514
509 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 515 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
510 }; 516 };
511 517
512 } // namespace content 518 } // namespace content
513 519
514 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 520 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW
« no previous file with comments | « content/content_common.gypi ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698