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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.h

Issue 1532813002: Replace IOSurfaceManager by directly passing IOSurface Mach ports over Chrome IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows compile Created 5 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
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_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <string> 10 #include <string>
11 11
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "base/process/process.h" 14 #include "base/process/process.h"
15 #include "base/synchronization/waitable_event.h" 15 #include "base/synchronization/waitable_event.h"
16 #include "content/browser/child_process_launcher.h" 16 #include "content/browser/child_process_launcher.h"
17 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 17 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
18 #include "content/browser/power_monitor_message_broadcaster.h" 18 #include "content/browser/power_monitor_message_broadcaster.h"
19 #include "content/common/content_export.h" 19 #include "content/common/content_export.h"
20 #include "content/common/mojo/service_registry_impl.h" 20 #include "content/common/mojo/service_registry_impl.h"
21 #include "content/public/browser/render_process_host.h" 21 #include "content/public/browser/render_process_host.h"
22 #include "ipc/ipc_channel_proxy.h" 22 #include "ipc/ipc_channel_proxy.h"
23 #include "ipc/ipc_platform_file.h" 23 #include "ipc/ipc_platform_file.h"
24 #include "mojo/public/cpp/bindings/interface_ptr.h" 24 #include "mojo/public/cpp/bindings/interface_ptr.h"
25 #include "ui/gfx/gpu_memory_buffer.h" 25 #include "ui/gfx/gpu_memory_buffer.h"
26 #include "ui/gl/gpu_switching_observer.h" 26 #include "ui/gl/gpu_switching_observer.h"
27 27
28 #if defined(OS_MACOSX) && !defined(OS_IOS)
29 #include "content/common/mac/io_surface_manager_token.h"
30 #endif
31
32 namespace base { 28 namespace base {
33 class CommandLine; 29 class CommandLine;
34 class MessageLoop; 30 class MessageLoop;
35 } 31 }
36 32
37 namespace gfx { 33 namespace gfx {
38 class Size; 34 class Size;
39 } 35 }
40 36
41 namespace gpu { 37 namespace gpu {
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 SubscriptionSet subscription_set_; 471 SubscriptionSet subscription_set_;
476 472
477 // Maintains ValueStates which are not currently subscribed too so we can 473 // Maintains ValueStates which are not currently subscribed too so we can
478 // pass them to the GpuService if a Valuebuffer ever subscribes to the 474 // pass them to the GpuService if a Valuebuffer ever subscribes to the
479 // respective subscription target 475 // respective subscription target
480 scoped_refptr<gpu::ValueStateMap> pending_valuebuffer_state_; 476 scoped_refptr<gpu::ValueStateMap> pending_valuebuffer_state_;
481 477
482 // Whether or not the CHROMIUM_subscribe_uniform WebGL extension is enabled 478 // Whether or not the CHROMIUM_subscribe_uniform WebGL extension is enabled
483 bool subscribe_uniform_enabled_; 479 bool subscribe_uniform_enabled_;
484 480
485 #if defined(OS_MACOSX) && !defined(OS_IOS)
486 // Unique unguessable token that the child process is using to acquire
487 // IOSurface references.
488 IOSurfaceManagerToken io_surface_manager_token_;
489 #endif
490
491 bool channel_connected_; 481 bool channel_connected_;
492 bool sent_render_process_ready_; 482 bool sent_render_process_ready_;
493 483
494 #if defined(OS_ANDROID) 484 #if defined(OS_ANDROID)
495 // UI thread is the source of sync IPCs and all shutdown signals. 485 // UI thread is the source of sync IPCs and all shutdown signals.
496 // Therefore a proper shutdown event to unblock the UI thread is not 486 // Therefore a proper shutdown event to unblock the UI thread is not
497 // possible without massive refactoring shutdown code. 487 // possible without massive refactoring shutdown code.
498 // Luckily Android never performs a clean shutdown. So explicitly 488 // Luckily Android never performs a clean shutdown. So explicitly
499 // ignore this problem. 489 // ignore this problem.
500 base::WaitableEvent never_signaled_; 490 base::WaitableEvent never_signaled_;
501 #endif 491 #endif
502 492
503 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_; 493 base::WeakPtrFactory<RenderProcessHostImpl> weak_factory_;
504 494
505 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl); 495 DISALLOW_COPY_AND_ASSIGN(RenderProcessHostImpl);
506 }; 496 };
507 497
508 } // namespace content 498 } // namespace content
509 499
510 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_ 500 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_PROCESS_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698