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

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

Issue 7980006: Implement OSMesa image transport for TOUCH_UI builds (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebase onto newer trunk 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 | Annotate | Revision Log
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/content_export.h"
22 #include "content/common/message_router.h" 22 #include "content/common/message_router.h"
23 23
24 namespace gfx { 24 namespace gfx {
25 class Size; 25 class Size;
26 } 26 }
27 27
28 struct GPUCreateCommandBufferConfig; 28 struct GPUCreateCommandBufferConfig;
29 struct GpuHostMsg_AcceleratedSurfaceNew_Params;
30 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params;
29 struct GpuHostMsg_AcceleratedSurfaceRelease_Params; 31 struct GpuHostMsg_AcceleratedSurfaceRelease_Params;
30 struct GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params;
31 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params;
32 32
33 namespace IPC { 33 namespace IPC {
34 struct ChannelHandle; 34 struct ChannelHandle;
35 class Message; 35 class Message;
36 } 36 }
37 37
38 // A task that will forward an IPC message to the UI shim. 38 // A task that will forward an IPC message to the UI shim.
39 class RouteToGpuProcessHostUIShimTask : public Task { 39 class RouteToGpuProcessHostUIShimTask : public Task {
40 public: 40 public:
41 RouteToGpuProcessHostUIShimTask(int host_id, const IPC::Message& msg); 41 RouteToGpuProcessHostUIShimTask(int host_id, const IPC::Message& msg);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void OnLogMessage(int level, const std::string& header, 98 void OnLogMessage(int level, const std::string& header,
99 const std::string& message); 99 const std::string& message);
100 #if defined(TOOLKIT_USES_GTK) && !defined(TOUCH_UI) || defined(OS_WIN) 100 #if defined(TOOLKIT_USES_GTK) && !defined(TOUCH_UI) || defined(OS_WIN)
101 void OnResizeView(int32 renderer_id, 101 void OnResizeView(int32 renderer_id,
102 int32 render_view_id, 102 int32 render_view_id,
103 int32 command_buffer_route_id, 103 int32 command_buffer_route_id,
104 gfx::Size size); 104 gfx::Size size);
105 #endif 105 #endif
106 106
107 #if defined(OS_MACOSX) || defined(TOUCH_UI) 107 #if defined(OS_MACOSX) || defined(TOUCH_UI)
108 void OnAcceleratedSurfaceSetIOSurface( 108 void OnAcceleratedSurfaceNew(
109 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params); 109 const GpuHostMsg_AcceleratedSurfaceNew_Params& params);
110 void OnAcceleratedSurfaceBuffersSwapped( 110 void OnAcceleratedSurfaceBuffersSwapped(
111 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); 111 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params);
112 #endif 112 #endif
113 113
114 #if defined(TOUCH_UI) 114 #if defined(TOUCH_UI)
115 void OnAcceleratedSurfaceRelease( 115 void OnAcceleratedSurfaceRelease(
116 const GpuHostMsg_AcceleratedSurfaceRelease_Params& params); 116 const GpuHostMsg_AcceleratedSurfaceRelease_Params& params);
117 #endif 117 #endif
118 118
119 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. 119 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair.
120 int host_id_; 120 int host_id_;
121 }; 121 };
122 122
123 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ 123 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698