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

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

Issue 331723003: gpu: Remove Create/DeleteImage IPC by adding an X11_PIXMAP_BUFFER GpuMemoryBuffer type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 void OnCloseChannel(const IPC::ChannelHandle& channel_handle); 114 void OnCloseChannel(const IPC::ChannelHandle& channel_handle);
115 void OnVisibilityChanged( 115 void OnVisibilityChanged(
116 int32 render_view_id, int32 client_id, bool visible); 116 int32 render_view_id, int32 client_id, bool visible);
117 void OnCreateViewCommandBuffer( 117 void OnCreateViewCommandBuffer(
118 const gfx::GLSurfaceHandle& window, 118 const gfx::GLSurfaceHandle& window,
119 int32 render_view_id, 119 int32 render_view_id,
120 int32 client_id, 120 int32 client_id,
121 const GPUCreateCommandBufferConfig& init_params, 121 const GPUCreateCommandBufferConfig& init_params,
122 int32 route_id); 122 int32 route_id);
123 void CreateImage( 123 void CreateImage(
124 gfx::PluginWindowHandle window, int32 client_id, int32 image_id); 124 const gfx::GpuMemoryBufferHandle& handle,
125 const gfx::Size& size,
126 unsigned internalformat,
127 int32 client_id,
128 int32 image_id);
125 void OnCreateImage( 129 void OnCreateImage(
126 gfx::PluginWindowHandle window, int32 client_id, int32 image_id); 130 const gfx::GpuMemoryBufferHandle& handle,
131 const gfx::Size& size,
132 unsigned internalformat,
133 int32 client_id,
134 int32 image_id);
127 void DeleteImage(int32 client_id, int32 image_id); 135 void DeleteImage(int32 client_id, int32 image_id);
128 void OnDeleteImage(int32 client_id, int32 image_id, int32 sync_point); 136 void OnDeleteImage(int32 client_id, int32 image_id, int32 sync_point);
129 void OnDeleteImageSyncPointRetired(ImageOperation*); 137 void OnDeleteImageSyncPointRetired(ImageOperation*);
130 void OnLoadedShader(std::string shader); 138 void OnLoadedShader(std::string shader);
131 void OnCreateGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle, 139 void OnCreateGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle,
132 const gfx::Size& size, 140 const gfx::Size& size,
133 unsigned internalformat, 141 unsigned internalformat,
134 unsigned usage); 142 unsigned usage);
135 void OnDestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle, 143 void OnDestroyGpuMemoryBuffer(const gfx::GpuMemoryBufferHandle& handle,
136 int32 sync_point); 144 int32 sync_point);
(...skipping 20 matching lines...) Expand all
157 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; 165 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_;
158 scoped_refptr<gfx::GLSurface> default_offscreen_surface_; 166 scoped_refptr<gfx::GLSurface> default_offscreen_surface_;
159 ImageOperationQueue image_operations_; 167 ImageOperationQueue image_operations_;
160 168
161 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager); 169 DISALLOW_COPY_AND_ASSIGN(GpuChannelManager);
162 }; 170 };
163 171
164 } // namespace content 172 } // namespace content
165 173
166 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_ 174 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698