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

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

Issue 7800015: prune down content_dll change to just the CONTENT_EXPORTS (Closed)
Patch Set: update copyright headers, merge Created 9 years, 3 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_GPU_PROCESS_HOST_UI_SHIM_H_ 5 #ifndef CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_
6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ 6 #define CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_
7 #pragma once 7 #pragma once
8 8
9 // This class lives on the UI thread and supports classes like the 9 // This class lives on the UI thread and supports classes like the
10 // BackingStoreProxy, which must live on the UI thread. The IO thread 10 // BackingStoreProxy, which must live on the UI thread. The IO thread
11 // portion of this class, the GpuProcessHost, is responsible for 11 // portion of this class, the GpuProcessHost, is responsible for
12 // shuttling messages between the browser and GPU processes. 12 // shuttling messages between the browser and GPU processes.
13 13
14 #include <queue> 14 #include <queue>
15 15
16 #include "base/callback.h" 16 #include "base/callback.h"
17 #include "base/task.h" 17 #include "base/task.h"
18 #include "base/memory/linked_ptr.h" 18 #include "base/memory/linked_ptr.h"
19 #include "base/memory/ref_counted.h" 19 #include "base/memory/ref_counted.h"
20 #include "base/threading/non_thread_safe.h" 20 #include "base/threading/non_thread_safe.h"
21 #include "content/common/content_export.h"
21 #include "content/common/message_router.h" 22 #include "content/common/message_router.h"
22 23
23 namespace gfx { 24 namespace gfx {
24 class Size; 25 class Size;
25 } 26 }
26 27
27 struct GPUCreateCommandBufferConfig; 28 struct GPUCreateCommandBufferConfig;
28 struct GpuHostMsg_AcceleratedSurfaceRelease_Params; 29 struct GpuHostMsg_AcceleratedSurfaceRelease_Params;
29 struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params; 30 struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params;
30 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; 31 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params;
(...skipping 24 matching lines...) Expand all
55 // Create a GpuProcessHostUIShim with the given ID. The object can be found 56 // Create a GpuProcessHostUIShim with the given ID. The object can be found
56 // using FromID with the same id. 57 // using FromID with the same id.
57 static GpuProcessHostUIShim* Create(int host_id); 58 static GpuProcessHostUIShim* Create(int host_id);
58 59
59 // Destroy the GpuProcessHostUIShim with the given host ID. This can only 60 // Destroy the GpuProcessHostUIShim with the given host ID. This can only
60 // be called on the UI thread. Only the GpuProcessHost should destroy the 61 // be called on the UI thread. Only the GpuProcessHost should destroy the
61 // UI shim. 62 // UI shim.
62 static void Destroy(int host_id); 63 static void Destroy(int host_id);
63 64
64 // Destroy all remaining GpuProcessHostUIShims. 65 // Destroy all remaining GpuProcessHostUIShims.
65 static void DestroyAll(); 66 CONTENT_EXPORT static void DestroyAll();
66 67
67 static GpuProcessHostUIShim* FromID(int host_id); 68 static GpuProcessHostUIShim* FromID(int host_id);
68 69
69 // IPC::Channel::Sender implementation. 70 // IPC::Channel::Sender implementation.
70 virtual bool Send(IPC::Message* msg); 71 virtual bool Send(IPC::Message* msg);
71 72
72 // IPC::Channel::Listener implementation. 73 // IPC::Channel::Listener implementation.
73 // The GpuProcessHost causes this to be called on the UI thread to 74 // The GpuProcessHost causes this to be called on the UI thread to
74 // dispatch the incoming messages from the GPU process, which are 75 // dispatch the incoming messages from the GPU process, which are
75 // actually received on the IO thread. 76 // actually received on the IO thread.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 #if defined(TOUCH_UI) 111 #if defined(TOUCH_UI)
111 void OnAcceleratedSurfaceRelease( 112 void OnAcceleratedSurfaceRelease(
112 const GpuHostMsg_AcceleratedSurfaceRelease_Params& params); 113 const GpuHostMsg_AcceleratedSurfaceRelease_Params& params);
113 #endif 114 #endif
114 115
115 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. 116 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair.
116 int host_id_; 117 int host_id_;
117 }; 118 };
118 119
119 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ 120 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698