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

Side by Side Diff: content/common/gpu/gpu_channel_manager.cc

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
« no previous file with comments | « content/browser/zygote_main_linux.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/common/gpu/gpu_channel_manager.h" 5 #include "content/common/gpu/gpu_channel_manager.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "app/win/scoped_com_initializer.h" 10 #include "app/win/scoped_com_initializer.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 bool GpuChannelManager::OnMessageReceived(const IPC::Message& msg) { 42 bool GpuChannelManager::OnMessageReceived(const IPC::Message& msg) {
43 bool msg_is_ok = true; 43 bool msg_is_ok = true;
44 bool handled = true; 44 bool handled = true;
45 IPC_BEGIN_MESSAGE_MAP_EX(GpuChannelManager, msg, msg_is_ok) 45 IPC_BEGIN_MESSAGE_MAP_EX(GpuChannelManager, msg, msg_is_ok)
46 IPC_MESSAGE_HANDLER(GpuMsg_EstablishChannel, OnEstablishChannel) 46 IPC_MESSAGE_HANDLER(GpuMsg_EstablishChannel, OnEstablishChannel)
47 IPC_MESSAGE_HANDLER(GpuMsg_CloseChannel, OnCloseChannel) 47 IPC_MESSAGE_HANDLER(GpuMsg_CloseChannel, OnCloseChannel)
48 IPC_MESSAGE_HANDLER(GpuMsg_CreateViewCommandBuffer, 48 IPC_MESSAGE_HANDLER(GpuMsg_CreateViewCommandBuffer,
49 OnCreateViewCommandBuffer) 49 OnCreateViewCommandBuffer)
50 IPC_MESSAGE_HANDLER(GpuMsg_Synchronize, OnSynchronize) 50 IPC_MESSAGE_HANDLER(GpuMsg_Synchronize, OnSynchronize)
51 IPC_MESSAGE_HANDLER(GpuMsg_VisibilityChanged, OnVisibilityChanged) 51 IPC_MESSAGE_HANDLER(GpuMsg_VisibilityChanged, OnVisibilityChanged)
52 #if defined(OS_LINUX) && !defined(TOUCH_UI) || defined(OS_WIN) 52 #if defined(TOOLKIT_USES_GTK) && !defined(TOUCH_UI) || defined(OS_WIN)
53 IPC_MESSAGE_HANDLER(GpuMsg_ResizeViewACK, OnResizeViewACK); 53 IPC_MESSAGE_HANDLER(GpuMsg_ResizeViewACK, OnResizeViewACK);
54 #elif defined(OS_MACOSX) 54 #elif defined(OS_MACOSX)
55 IPC_MESSAGE_HANDLER(GpuMsg_AcceleratedSurfaceBuffersSwappedACK, 55 IPC_MESSAGE_HANDLER(GpuMsg_AcceleratedSurfaceBuffersSwappedACK,
56 OnAcceleratedSurfaceBuffersSwappedACK) 56 OnAcceleratedSurfaceBuffersSwappedACK)
57 IPC_MESSAGE_HANDLER(GpuMsg_DestroyCommandBuffer, 57 IPC_MESSAGE_HANDLER(GpuMsg_DestroyCommandBuffer,
58 OnDestroyCommandBuffer) 58 OnDestroyCommandBuffer)
59 #endif 59 #endif
60 IPC_MESSAGE_UNHANDLED(handled = false) 60 IPC_MESSAGE_UNHANDLED(handled = false)
61 IPC_END_MESSAGE_MAP_EX() 61 IPC_END_MESSAGE_MAP_EX()
62 return handled; 62 return handled;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 void GpuChannelManager::LoseAllContexts() { 166 void GpuChannelManager::LoseAllContexts() {
167 MessageLoop::current()->PostTask( 167 MessageLoop::current()->PostTask(
168 FROM_HERE, method_factory_.NewRunnableMethod( 168 FROM_HERE, method_factory_.NewRunnableMethod(
169 &GpuChannelManager::OnLoseAllContexts)); 169 &GpuChannelManager::OnLoseAllContexts));
170 } 170 }
171 171
172 void GpuChannelManager::OnLoseAllContexts() { 172 void GpuChannelManager::OnLoseAllContexts() {
173 gpu_channels_.clear(); 173 gpu_channels_.clear();
174 } 174 }
OLDNEW
« no previous file with comments | « content/browser/zygote_main_linux.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698