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

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

Issue 7006006: Replace OS_LINUX ifdefs with OS_POSIX & !OS_MACOSX, TOOLKIT_USES_GTK, or (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 6 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
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 private: 86 private:
87 explicit GpuProcessHostUIShim(int host_id); 87 explicit GpuProcessHostUIShim(int host_id);
88 virtual ~GpuProcessHostUIShim(); 88 virtual ~GpuProcessHostUIShim();
89 89
90 // Message handlers. 90 // Message handlers.
91 bool OnControlMessageReceived(const IPC::Message& message); 91 bool OnControlMessageReceived(const IPC::Message& message);
92 92
93 void OnLogMessage(int level, const std::string& header, 93 void OnLogMessage(int level, const std::string& header,
94 const std::string& message); 94 const std::string& message);
95 #if defined(OS_LINUX) && !defined(TOUCH_UI) || defined(OS_WIN) 95 #if defined(TOOLKIT_USES_GTK) && !defined(TOUCH_UI) || defined(OS_WIN)
96 void OnResizeView(int32 renderer_id, 96 void OnResizeView(int32 renderer_id,
97 int32 render_view_id, 97 int32 render_view_id,
98 int32 command_buffer_route_id, 98 int32 command_buffer_route_id,
99 gfx::Size size); 99 gfx::Size size);
100 #elif defined(OS_MACOSX) 100 #elif defined(OS_MACOSX)
101 void OnAcceleratedSurfaceSetIOSurface( 101 void OnAcceleratedSurfaceSetIOSurface(
102 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params); 102 const GpuHostMsg_AcceleratedSurfaceSetIOSurface_Params& params);
103 void OnAcceleratedSurfaceBuffersSwapped( 103 void OnAcceleratedSurfaceBuffersSwapped(
104 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params); 104 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params);
105 #endif 105 #endif
106 106
107 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair. 107 // The serial number of the GpuProcessHost / GpuProcessHostUIShim pair.
108 int host_id_; 108 int host_id_;
109 }; 109 };
110 110
111 #endif // CONTENT_BROWSER_GPU_GPU_PROCESS_HOST_UI_SHIM_H_ 111 #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