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

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

Issue 7395020: Create new GLSurface for cross process image transport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 9 years, 5 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/gpu/gpu_process_host_ui_shim.cc ('k') | content/common/gpu/gpu_channel.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 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_H_
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 int32 render_view_id, 94 int32 render_view_id,
95 const GPUCreateCommandBufferConfig& init_params, 95 const GPUCreateCommandBufferConfig& init_params,
96 int32* route_id); 96 int32* route_id);
97 97
98 void ViewResized(int32 command_buffer_route_id); 98 void ViewResized(int32 command_buffer_route_id);
99 99
100 gfx::GLShareGroup* share_group() const { return share_group_.get(); } 100 gfx::GLShareGroup* share_group() const { return share_group_.get(); }
101 101
102 GpuCommandBufferStub* LookupCommandBuffer(int32 route_id); 102 GpuCommandBufferStub* LookupCommandBuffer(int32 route_id);
103 103
104 #if defined(TOUCH_UI) 104 #if defined(OS_MACOSX)
105 virtual void AcceleratedSurfaceIOSurfaceSet(
106 int32 route_id, uint64 surface_id);
107 virtual void AcceleratedSurfaceReleased(
108 int32 route_id, uint64 surface_id);
109 #endif
110
111 #if defined(OS_MACOSX) || defined(TOUCH_UI)
112 virtual void AcceleratedSurfaceBuffersSwapped( 105 virtual void AcceleratedSurfaceBuffersSwapped(
113 int32 route_id, uint64 swap_buffers_count); 106 int32 route_id, uint64 swap_buffers_count);
114 #endif
115
116 #if defined(OS_MACOSX)
117 void DestroyCommandBufferByViewId(int32 render_view_id); 107 void DestroyCommandBufferByViewId(int32 render_view_id);
118 #endif 108 #endif
119 109
120 void LoseAllContexts(); 110 void LoseAllContexts();
121 111
122 // Destroy channel and all contained contexts. 112 // Destroy channel and all contained contexts.
123 void DestroySoon(); 113 void DestroySoon();
124 114
125 // Look up a GLSurface by ID. In this case the ID is the IPC routing ID. 115 // Look up a GLSurface by ID. In this case the ID is the IPC routing ID.
126 virtual gfx::GLSurface* LookupSurface(int surface_id); 116 virtual gfx::GLSurface* LookupSurface(int surface_id);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 gpu::gles2::DisallowedExtensions disallowed_extensions_; 193 gpu::gles2::DisallowedExtensions disallowed_extensions_;
204 GpuWatchdog* watchdog_; 194 GpuWatchdog* watchdog_;
205 bool software_; 195 bool software_;
206 196
207 ScopedRunnableMethodFactory<GpuChannel> task_factory_; 197 ScopedRunnableMethodFactory<GpuChannel> task_factory_;
208 198
209 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 199 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
210 }; 200 };
211 201
212 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 202 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host_ui_shim.cc ('k') | content/common/gpu/gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698