| 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_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ | 5 #ifndef CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ |
| 6 #define CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ | 6 #define CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <map> | 11 #include <map> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
| 18 #include "content/common/gpu/client/gpu_channel_host.h" | 18 #include "content/common/gpu/client/gpu_channel_host.h" |
| 19 #include "content/common/gpu_process_launch_causes.h" |
| 19 #include "ipc/message_filter.h" | 20 #include "ipc/message_filter.h" |
| 20 | 21 |
| 21 namespace content { | 22 namespace content { |
| 22 class BrowserGpuMemoryBufferManager; | 23 class BrowserGpuMemoryBufferManager; |
| 23 | 24 |
| 24 class CONTENT_EXPORT BrowserGpuChannelHostFactory | 25 class CONTENT_EXPORT BrowserGpuChannelHostFactory |
| 25 : public GpuChannelHostFactory { | 26 : public GpuChannelHostFactory { |
| 26 public: | 27 public: |
| 27 static void Initialize(bool establish_gpu_channel); | 28 static void Initialize(bool establish_gpu_channel); |
| 28 static void Terminate(); | 29 static void Terminate(); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 std::vector<base::Closure> established_callbacks_; | 71 std::vector<base::Closure> established_callbacks_; |
| 71 | 72 |
| 72 static BrowserGpuChannelHostFactory* instance_; | 73 static BrowserGpuChannelHostFactory* instance_; |
| 73 | 74 |
| 74 DISALLOW_COPY_AND_ASSIGN(BrowserGpuChannelHostFactory); | 75 DISALLOW_COPY_AND_ASSIGN(BrowserGpuChannelHostFactory); |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 } // namespace content | 78 } // namespace content |
| 78 | 79 |
| 79 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ | 80 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ |
| OLD | NEW |