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

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

Issue 8617001: A few less TOUCH_UIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ooops 's/&&/||' Created 9 years, 1 month 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
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 private: 81 private:
82 explicit GpuProcessHostUIShim(int host_id); 82 explicit GpuProcessHostUIShim(int host_id);
83 virtual ~GpuProcessHostUIShim(); 83 virtual ~GpuProcessHostUIShim();
84 84
85 // Message handlers. 85 // Message handlers.
86 bool OnControlMessageReceived(const IPC::Message& message); 86 bool OnControlMessageReceived(const IPC::Message& message);
87 87
88 void OnLogMessage(int level, const std::string& header, 88 void OnLogMessage(int level, const std::string& header,
89 const std::string& message); 89 const std::string& message);
90 #if defined(TOOLKIT_USES_GTK) && !defined(UI_COMPOSITOR_IMAGE_TRANSPORT) || \ 90 #if defined(TOOLKIT_USES_GTK) || defined(OS_WIN)
91 defined(OS_WIN)
92 void OnResizeView(int32 renderer_id, 91 void OnResizeView(int32 renderer_id,
93 int32 render_view_id, 92 int32 render_view_id,
94 int32 command_buffer_route_id, 93 int32 command_buffer_route_id,
95 gfx::Size size); 94 gfx::Size size);
96 #endif 95 #endif
97 96
98 #if defined(OS_MACOSX) || defined(UI_COMPOSITOR_IMAGE_TRANSPORT) 97 #if defined(OS_MACOSX) || defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
99 void OnAcceleratedSurfaceNew( 98 void OnAcceleratedSurfaceNew(
100 const GpuHostMsg_AcceleratedSurfaceNew_Params& params); 99 const GpuHostMsg_AcceleratedSurfaceNew_Params& params);
101 void OnAcceleratedSurfaceBuffersSwapped( 100 void OnAcceleratedSurfaceBuffersSwapped(
102 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); 101 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params);
103 #endif 102 #endif
104 103
105 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT) 104 #if defined(UI_COMPOSITOR_IMAGE_TRANSPORT)
106 void OnAcceleratedSurfaceRelease( 105 void OnAcceleratedSurfaceRelease(
107 const GpuHostMsg_AcceleratedSurfaceRelease_Params& params); 106 const GpuHostMsg_AcceleratedSurfaceRelease_Params& params);
108 #endif 107 #endif
109 108
110 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. 109 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair.
111 int host_id_; 110 int host_id_;
112 }; 111 };
113 112
114 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ 113 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/browser/gpu/gpu_process_host_ui_shim.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698