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

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
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 <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 int32 render_view_id, 83 int32 render_view_id,
84 const GPUCreateCommandBufferConfig& init_params, 84 const GPUCreateCommandBufferConfig& init_params,
85 int32* route_id); 85 int32* route_id);
86 86
87 void ViewResized(int32 command_buffer_route_id); 87 void ViewResized(int32 command_buffer_route_id);
88 88
89 gfx::GLShareGroup* share_group() const { return share_group_.get(); } 89 gfx::GLShareGroup* share_group() const { return share_group_.get(); }
90 90
91 GpuCommandBufferStub* LookupCommandBuffer(int32 route_id); 91 GpuCommandBufferStub* LookupCommandBuffer(int32 route_id);
92 92
93 #if defined(TOUCH_UI) 93 #if defined(OS_MACOSX)
94 virtual void AcceleratedSurfaceIOSurfaceSet(
95 int32 route_id, uint64 surface_id);
96 virtual void AcceleratedSurfaceReleased(
97 int32 route_id, uint64 surface_id);
98 #endif
99
100 #if defined(OS_MACOSX) || defined(TOUCH_UI)
101 virtual void AcceleratedSurfaceBuffersSwapped( 94 virtual void AcceleratedSurfaceBuffersSwapped(
102 int32 route_id, uint64 swap_buffers_count); 95 int32 route_id, uint64 swap_buffers_count);
103 #endif
104
105 #if defined(OS_MACOSX)
106 void DestroyCommandBufferByViewId(int32 render_view_id); 96 void DestroyCommandBufferByViewId(int32 render_view_id);
107 #endif 97 #endif
108 98
109 void LoseAllContexts(); 99 void LoseAllContexts();
110 100
111 // Destroy channel and all contained contexts. 101 // Destroy channel and all contained contexts.
112 void DestroySoon(); 102 void DestroySoon();
113 103
114 // Look up a GLSurface by ID. In this case the ID is the IPC routing ID. 104 // Look up a GLSurface by ID. In this case the ID is the IPC routing ID.
115 virtual gfx::GLSurface* LookupSurface(int surface_id); 105 virtual gfx::GLSurface* LookupSurface(int surface_id);
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 TransportTextureMap transport_textures_; 175 TransportTextureMap transport_textures_;
186 176
187 bool log_messages_; // True if we should log sent and received messages. 177 bool log_messages_; // True if we should log sent and received messages.
188 gpu::gles2::DisallowedExtensions disallowed_extensions_; 178 gpu::gles2::DisallowedExtensions disallowed_extensions_;
189 GpuWatchdog* watchdog_; 179 GpuWatchdog* watchdog_;
190 180
191 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 181 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
192 }; 182 };
193 183
194 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 184 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698