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

Side by Side Diff: content/browser/gpu/browser_gpu_channel_host_factory.h

Issue 14335017: content: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 months 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
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_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 "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/process.h" 10 #include "base/process.h"
11 #include "base/synchronization/waitable_event.h" 11 #include "base/synchronization/waitable_event.h"
12 #include "content/common/gpu/client/gpu_channel_host.h" 12 #include "content/common/gpu/client/gpu_channel_host.h"
13 #include "ipc/ipc_channel_handle.h" 13 #include "ipc/ipc_channel_handle.h"
14 14
15 namespace content { 15 namespace content {
16 16
17 class BrowserGpuChannelHostFactory : public GpuChannelHostFactory { 17 class BrowserGpuChannelHostFactory : public GpuChannelHostFactory {
18 public: 18 public:
19 static void Initialize(); 19 static void Initialize();
20 static void Terminate(); 20 static void Terminate();
21 static BrowserGpuChannelHostFactory* instance() { return instance_; } 21 static BrowserGpuChannelHostFactory* instance() { return instance_; }
22 22
23 // GpuChannelHostFactory implementation. 23 // GpuChannelHostFactory implementation.
24 virtual bool IsMainThread() OVERRIDE; 24 virtual bool IsMainThread() OVERRIDE;
25 virtual bool IsIOThread() OVERRIDE; 25 virtual bool IsIOThread() OVERRIDE;
26 virtual MessageLoop* GetMainLoop() OVERRIDE; 26 virtual base::MessageLoop* GetMainLoop() OVERRIDE;
27 virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() OVERRIDE; 27 virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() OVERRIDE;
28 virtual base::WaitableEvent* GetShutDownEvent() OVERRIDE; 28 virtual base::WaitableEvent* GetShutDownEvent() OVERRIDE;
29 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory( 29 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory(
30 size_t size) OVERRIDE; 30 size_t size) OVERRIDE;
31 virtual int32 CreateViewCommandBuffer( 31 virtual int32 CreateViewCommandBuffer(
32 int32 surface_id, 32 int32 surface_id,
33 const GPUCreateCommandBufferConfig& init_params) OVERRIDE; 33 const GPUCreateCommandBufferConfig& init_params) OVERRIDE;
34 virtual void CreateImage( 34 virtual void CreateImage(
35 gfx::PluginWindowHandle window, 35 gfx::PluginWindowHandle window,
36 int32 image_id, 36 int32 image_id,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 int gpu_host_id_; 98 int gpu_host_id_;
99 99
100 static BrowserGpuChannelHostFactory* instance_; 100 static BrowserGpuChannelHostFactory* instance_;
101 101
102 DISALLOW_COPY_AND_ASSIGN(BrowserGpuChannelHostFactory); 102 DISALLOW_COPY_AND_ASSIGN(BrowserGpuChannelHostFactory);
103 }; 103 };
104 104
105 } // namespace content 105 } // namespace content
106 106
107 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ 107 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_
OLDNEW
« no previous file with comments | « content/browser/geolocation/win7_location_provider_win.cc ('k') | content/browser/gpu/gpu_data_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698