#include "content/common/content_export.h"
#include "content/common/gpu/client/gpu_channel_host.h"
#include "content/public/renderer/render_thread.h"
-#include "ipc/ipc_channel_proxy.h"
#include "ui/gfx/native_widget_types.h"
#if defined(OS_MACOSX)
namespace blink {
class WebGamepads;
+class WebGamepadListener;
class WebGraphicsContext3D;
class WebMediaStreamCenter;
class WebMediaStreamCenterClient;
namespace IPC {
class ForwardingMessageFilter;
+class MessageFilter;
}
namespace media {
virtual void AddRoute(int32 routing_id, IPC::Listener* listener) OVERRIDE;
virtual void RemoveRoute(int32 routing_id) OVERRIDE;
virtual int GenerateRoutingID() OVERRIDE;
- virtual void AddFilter(IPC::ChannelProxy::MessageFilter* filter) OVERRIDE;
- virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter) OVERRIDE;
+ virtual void AddFilter(IPC::MessageFilter* filter) OVERRIDE;
+ virtual void RemoveFilter(IPC::MessageFilter* filter) OVERRIDE;
virtual void AddObserver(RenderProcessObserver* observer) OVERRIDE;
virtual void RemoveObserver(RenderProcessObserver* observer) OVERRIDE;
virtual void SetResourceDispatcherDelegate(
bool is_lcd_text_enabled() const { return is_lcd_text_enabled_; }
- bool is_map_image_enabled() const { return is_map_image_enabled_; }
+ bool is_distance_field_text_enabled() const {
+ return is_distance_field_text_enabled_;
+ }
+
+ bool is_zero_copy_enabled() const { return is_zero_copy_enabled_; }
+
+ bool is_one_copy_enabled() const { return is_one_copy_enabled_; }
AppCacheDispatcher* appcache_dispatcher() const {
return appcache_dispatcher_.get();
return vc_manager_.get();
}
+ GamepadSharedMemoryReader* gamepad_shared_memory_reader() const {
+ return gamepad_shared_memory_reader_.get();
+ }
+
// Get the GPU channel. Returns NULL if the channel is not established or
// has been lost.
GpuChannelHost* GetGpuChannel();
scoped_refptr<media::GpuVideoAcceleratorFactories> GetGpuFactories();
- scoped_refptr<cc::ContextProvider> OffscreenCompositorContextProvider();
scoped_refptr<webkit::gpu::ContextProviderWebContext>
SharedMainThreadContextProvider();
// Retrieve current gamepad data.
void SampleGamepads(blink::WebGamepads* data);
+ // Set a listener for gamepad connected/disconnected events.
+ // A non-null listener must be set first before calling SampleGamepads.
+ void SetGamepadListener(blink::WebGamepadListener* listener);
+
// Called by a RenderWidget when it is created or destroyed. This
// allows the process to know when there are no visible widgets.
void WidgetCreated();
void WidgetHidden();
void WidgetRestored();
- void AddSharedWorkerRoute(int32 routing_id, IPC::Listener* listener);
- void RemoveSharedWorkerRoute(int32 routing_id);
+ void AddEmbeddedWorkerRoute(int32 routing_id, IPC::Listener* listener);
+ void RemoveEmbeddedWorkerRoute(int32 routing_id);
private:
// ChildThread
virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() OVERRIDE;
virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory(
size_t size) OVERRIDE;
- virtual int32 CreateViewCommandBuffer(
+ virtual bool CreateViewCommandBuffer(
int32 surface_id,
- const GPUCreateCommandBufferConfig& init_params) OVERRIDE;
+ const GPUCreateCommandBufferConfig& init_params,
+ int32 route_id) OVERRIDE;
virtual void CreateImage(
gfx::PluginWindowHandle window,
int32 image_id,
virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
size_t width,
size_t height,
- unsigned internalformat) OVERRIDE;
+ unsigned internalformat,
+ unsigned usage) OVERRIDE;
+
+ // mojo::ShellClient implementation:
+ virtual void AcceptConnection(
+ const mojo::String& service_name,
+ mojo::ScopedMessagePipeHandle message_pipe) OVERRIDE;
void Init();
scoped_ptr<InputHandlerManager> input_handler_manager_;
scoped_refptr<IPC::ForwardingMessageFilter> compositor_output_surface_filter_;
- scoped_refptr<ContextProviderCommandBuffer> offscreen_compositor_contexts_;
scoped_refptr<ContextProviderCommandBuffer> shared_main_thread_contexts_;
ObserverList<RenderProcessObserver> observers_;
bool is_impl_side_painting_enabled_;
bool is_low_res_tiling_enabled_;
bool is_lcd_text_enabled_;
- bool is_map_image_enabled_;
+ bool is_distance_field_text_enabled_;
+ bool is_zero_copy_enabled_;
+ bool is_one_copy_enabled_;
DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
};