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

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

Issue 7205012: RendererGLContext supports reparenting a GL context. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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_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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 void CreateViewCommandBuffer( 81 void CreateViewCommandBuffer(
82 gfx::PluginWindowHandle window, 82 gfx::PluginWindowHandle window,
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);
92
91 #if defined(OS_MACOSX) 93 #if defined(OS_MACOSX)
92 virtual void AcceleratedSurfaceBuffersSwapped( 94 virtual void AcceleratedSurfaceBuffersSwapped(
93 int32 route_id, uint64 swap_buffers_count); 95 int32 route_id, uint64 swap_buffers_count);
94 void DestroyCommandBufferByViewId(int32 render_view_id); 96 void DestroyCommandBufferByViewId(int32 render_view_id);
95 #endif 97 #endif
96 98
97 void LoseAllContexts(); 99 void LoseAllContexts();
98 100
99 // Look up a GLSurface by ID. In this case the ID is the IPC routing ID. 101 // Look up a GLSurface by ID. In this case the ID is the IPC routing ID.
100 virtual gfx::GLSurface* LookupSurface(int surface_id); 102 virtual gfx::GLSurface* LookupSurface(int surface_id);
(...skipping 11 matching lines...) Expand all
112 void OnLatchCallback(int route_id, bool is_set_latch); 114 void OnLatchCallback(int route_id, bool is_set_latch);
113 115
114 private: 116 private:
115 bool OnControlMessageReceived(const IPC::Message& msg); 117 bool OnControlMessageReceived(const IPC::Message& msg);
116 118
117 int GenerateRouteID(); 119 int GenerateRouteID();
118 120
119 // Message handlers. 121 // Message handlers.
120 void OnInitialize(base::ProcessHandle renderer_process); 122 void OnInitialize(base::ProcessHandle renderer_process);
121 void OnCreateOffscreenCommandBuffer( 123 void OnCreateOffscreenCommandBuffer(
122 int32 parent_route_id,
123 const gfx::Size& size, 124 const gfx::Size& size,
124 const GPUCreateCommandBufferConfig& init_params, 125 const GPUCreateCommandBufferConfig& init_params,
125 uint32 parent_texture_id,
126 int32* route_id); 126 int32* route_id);
127 void OnDestroyCommandBuffer(int32 route_id); 127 void OnDestroyCommandBuffer(int32 route_id);
128 128
129 void OnCreateOffscreenSurface(const gfx::Size& size, 129 void OnCreateOffscreenSurface(const gfx::Size& size,
130 int* route_id); 130 int* route_id);
131 void OnDestroySurface(int route_id); 131 void OnDestroySurface(int route_id);
132 132
133 void OnCreateVideoDecoder(int32 decoder_host_id, 133 void OnCreateVideoDecoder(int32 decoder_host_id,
134 uint32 command_buffer_route_id, 134 uint32 command_buffer_route_id,
135 const std::vector<uint32>& configs); 135 const std::vector<uint32>& configs);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 TransportTextureMap transport_textures_; 179 TransportTextureMap transport_textures_;
180 180
181 bool log_messages_; // True if we should log sent and received messages. 181 bool log_messages_; // True if we should log sent and received messages.
182 gpu::gles2::DisallowedExtensions disallowed_extensions_; 182 gpu::gles2::DisallowedExtensions disallowed_extensions_;
183 GpuWatchdog* watchdog_; 183 GpuWatchdog* watchdog_;
184 184
185 DISALLOW_COPY_AND_ASSIGN(GpuChannel); 185 DISALLOW_COPY_AND_ASSIGN(GpuChannel);
186 }; 186 };
187 187
188 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_ 188 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/gpu_channel.cc » ('j') | content/renderer/gpu/renderer_gl_context.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698