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

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

Issue 7129006: Make EstablishGpuChannel synchronous. Remove obsolete Synchronize msg. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fix indentation and 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_GPU_GPU_CHANNEL_MANAGER_H_ 5 #ifndef CONTENT_GPU_GPU_CHANNEL_MANAGER_H_
6 #define CONTENT_GPU_GPU_CHANNEL_MANAGER_H_ 6 #define CONTENT_GPU_GPU_CHANNEL_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void LoseAllContexts(); 61 void LoseAllContexts();
62 62
63 ScopedRunnableMethodFactory<GpuChannelManager> method_factory_; 63 ScopedRunnableMethodFactory<GpuChannelManager> method_factory_;
64 64
65 private: 65 private:
66 // Message handlers. 66 // Message handlers.
67 void OnEstablishChannel(int renderer_id); 67 void OnEstablishChannel(int renderer_id);
68 void OnCloseChannel(const IPC::ChannelHandle& channel_handle); 68 void OnCloseChannel(const IPC::ChannelHandle& channel_handle);
69 void OnVisibilityChanged( 69 void OnVisibilityChanged(
70 int32 render_view_id, int32 renderer_id, bool visible); 70 int32 render_view_id, int32 renderer_id, bool visible);
71 void OnSynchronize();
72 void OnCreateViewCommandBuffer( 71 void OnCreateViewCommandBuffer(
73 gfx::PluginWindowHandle window, 72 gfx::PluginWindowHandle window,
74 int32 render_view_id, 73 int32 render_view_id,
75 int32 renderer_id, 74 int32 renderer_id,
76 const GPUCreateCommandBufferConfig& init_params); 75 const GPUCreateCommandBufferConfig& init_params);
77 void OnResizeViewACK(int32 renderer_id, int32 command_buffer_route_id); 76 void OnResizeViewACK(int32 renderer_id, int32 command_buffer_route_id);
78 #if defined(OS_MACOSX) 77 #if defined(OS_MACOSX)
79 void OnAcceleratedSurfaceBuffersSwappedACK( 78 void OnAcceleratedSurfaceBuffersSwappedACK(
80 int renderer_id, int32 route_id, uint64 swap_buffers_count); 79 int renderer_id, int32 route_id, uint64 swap_buffers_count);
81 void OnDestroyCommandBuffer(int renderer_id, int32 renderer_view_id); 80 void OnDestroyCommandBuffer(int renderer_id, int32 renderer_view_id);
(...skipping 13 matching lines...) Expand all
95 // one channel for each renderer process that has connected to this GPU 94 // one channel for each renderer process that has connected to this GPU
96 // process. 95 // process.
97 typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap; 96 typedef base::hash_map<int, scoped_refptr<GpuChannel> > GpuChannelMap;
98 GpuChannelMap gpu_channels_; 97 GpuChannelMap gpu_channels_;
99 GpuWatchdog* watchdog_; 98 GpuWatchdog* watchdog_;
100 99
101 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); 100 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager);
102 }; 101 };
103 102
104 #endif // CONTENT_GPU_GPU_CHANNEL_MANAGER_H_ 103 #endif // CONTENT_GPU_GPU_CHANNEL_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/gpu_message_filter.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698