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

Side by Side Diff: chrome/renderer/ggl/ggl.h

Issue 6343006: Route IPC through browser when creating a viewable command buffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nit. Created 9 years, 10 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 | « chrome/gpu/gpu_thread.cc ('k') | chrome/renderer/ggl/ggl.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // This API is consistent with other OpenGL setup APIs like window's WGL 5 // This API is consistent with other OpenGL setup APIs like window's WGL
6 // and pepper's PGL. This API is used to manage OpenGL contexts in the Chrome 6 // and pepper's PGL. This API is used to manage OpenGL contexts in the Chrome
7 // renderer process in a way that is consistent with other platforms. It is 7 // renderer process in a way that is consistent with other platforms. It is
8 // a C style API to ease porting of existing OpenGL software to Chrome. 8 // a C style API to ease porting of existing OpenGL software to Chrome.
9 9
10 #ifndef CHROME_RENDERER_GGL_GGL_H_ 10 #ifndef CHROME_RENDERER_GGL_GGL_H_
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // because the facility to allocate a fake PluginWindowHandle is 73 // because the facility to allocate a fake PluginWindowHandle is
74 // already in place. We could add more entry points and messages to 74 // already in place. We could add more entry points and messages to
75 // allocate both fake PluginWindowHandles and NativeViewIds and map 75 // allocate both fake PluginWindowHandles and NativeViewIds and map
76 // from fake NativeViewIds to PluginWindowHandles, but this seems like 76 // from fake NativeViewIds to PluginWindowHandles, but this seems like
77 // unnecessary complexity at the moment. 77 // unnecessary complexity at the moment.
78 // 78 //
79 // The render_view_id is currently also only used on Mac OS X. 79 // The render_view_id is currently also only used on Mac OS X.
80 // TODO(kbr): clean up the arguments to this function and make them 80 // TODO(kbr): clean up the arguments to this function and make them
81 // more cross-platform. 81 // more cross-platform.
82 Context* CreateViewContext(GpuChannelHost* channel, 82 Context* CreateViewContext(GpuChannelHost* channel,
83 gfx::NativeViewId view,
84 int render_view_id, 83 int render_view_id,
85 const char* allowed_extensions, 84 const char* allowed_extensions,
86 const int32* attrib_list); 85 const int32* attrib_list);
87 86
88 #if defined(OS_MACOSX) 87 #if defined(OS_MACOSX)
89 // On Mac OS X only, view contexts actually behave like offscreen contexts, and 88 // On Mac OS X only, view contexts actually behave like offscreen contexts, and
90 // require an explicit resize operation which is slightly different from that 89 // require an explicit resize operation which is slightly different from that
91 // of offscreen contexts. 90 // of offscreen contexts.
92 void ResizeOnscreenContext(Context* context, const gfx::Size& size); 91 void ResizeOnscreenContext(Context* context, const gfx::Size& size);
93 #endif 92 #endif
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // Return the current GGL error. 161 // Return the current GGL error.
163 Error GetError(Context* context); 162 Error GetError(Context* context);
164 163
165 // Return true if GPU process reported context lost or there was a problem 164 // Return true if GPU process reported context lost or there was a problem
166 // communicating with the GPU process. 165 // communicating with the GPU process.
167 bool IsCommandBufferContextLost(Context* context); 166 bool IsCommandBufferContextLost(Context* context);
168 167
169 } // namespace ggl 168 } // namespace ggl
170 169
171 #endif // CHROME_RENDERER_GGL_GGL_H_ 170 #endif // CHROME_RENDERER_GGL_GGL_H_
OLDNEW
« no previous file with comments | « chrome/gpu/gpu_thread.cc ('k') | chrome/renderer/ggl/ggl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698