| OLD | NEW |
| 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/metrics/user_metrics_action.h" | 13 #include "base/metrics/user_metrics_action.h" |
| 14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
| 15 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
| 16 #include "base/threading/thread_checker.h" | 16 #include "base/threading/thread_checker.h" |
| 17 #include "base/timer/timer.h" | 17 #include "base/timer/timer.h" |
| 18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
| 19 #include "content/child/child_thread.h" | 19 #include "content/child/child_thread.h" |
| 20 #include "content/common/content_export.h" | 20 #include "content/common/content_export.h" |
| 21 #include "content/common/gpu/client/gpu_channel_host.h" | 21 #include "content/common/gpu/client/gpu_channel_host.h" |
| 22 #include "content/common/gpu/gpu_result_codes.h" |
| 22 #include "content/public/renderer/render_thread.h" | 23 #include "content/public/renderer/render_thread.h" |
| 23 #include "net/base/network_change_notifier.h" | 24 #include "net/base/network_change_notifier.h" |
| 24 #include "third_party/WebKit/public/platform/WebConnectionType.h" | 25 #include "third_party/WebKit/public/platform/WebConnectionType.h" |
| 25 #include "ui/gfx/native_widget_types.h" | 26 #include "ui/gfx/native_widget_types.h" |
| 26 | 27 |
| 27 #if defined(OS_MACOSX) | 28 #if defined(OS_MACOSX) |
| 28 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" | 29 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" |
| 29 #endif | 30 #endif |
| 30 | 31 |
| 31 class GrContext; | 32 class GrContext; |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 private: | 404 private: |
| 404 // ChildThread | 405 // ChildThread |
| 405 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; | 406 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 406 | 407 |
| 407 // GpuChannelHostFactory implementation: | 408 // GpuChannelHostFactory implementation: |
| 408 virtual bool IsMainThread() OVERRIDE; | 409 virtual bool IsMainThread() OVERRIDE; |
| 409 virtual base::MessageLoop* GetMainLoop() OVERRIDE; | 410 virtual base::MessageLoop* GetMainLoop() OVERRIDE; |
| 410 virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() OVERRIDE; | 411 virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() OVERRIDE; |
| 411 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory( | 412 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory( |
| 412 size_t size) OVERRIDE; | 413 size_t size) OVERRIDE; |
| 413 virtual bool CreateViewCommandBuffer( | 414 virtual CreateCommandBufferResult CreateViewCommandBuffer( |
| 414 int32 surface_id, | 415 int32 surface_id, |
| 415 const GPUCreateCommandBufferConfig& init_params, | 416 const GPUCreateCommandBufferConfig& init_params, |
| 416 int32 route_id) OVERRIDE; | 417 int32 route_id) OVERRIDE; |
| 417 virtual void CreateImage( | 418 virtual void CreateImage( |
| 418 gfx::PluginWindowHandle window, | 419 gfx::PluginWindowHandle window, |
| 419 int32 image_id, | 420 int32 image_id, |
| 420 const CreateImageCallback& callback) OVERRIDE; | 421 const CreateImageCallback& callback) OVERRIDE; |
| 421 virtual void DeleteImage(int32 image_id, int32 sync_point) OVERRIDE; | 422 virtual void DeleteImage(int32 image_id, int32 sync_point) OVERRIDE; |
| 422 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( | 423 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( |
| 423 size_t width, | 424 size_t width, |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 bool is_distance_field_text_enabled_; | 580 bool is_distance_field_text_enabled_; |
| 580 bool is_zero_copy_enabled_; | 581 bool is_zero_copy_enabled_; |
| 581 bool is_one_copy_enabled_; | 582 bool is_one_copy_enabled_; |
| 582 | 583 |
| 583 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 584 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
| 584 }; | 585 }; |
| 585 | 586 |
| 586 } // namespace content | 587 } // namespace content |
| 587 | 588 |
| 588 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 589 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
| OLD | NEW |