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

Side by Side Diff: cc/gl_renderer.h

Issue 11369071: A speculative Revert for r165872 - Remove static thread pointers from CC, attempt 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 | « cc/frame_rate_counter.cc ('k') | cc/gl_renderer.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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef CC_GL_RENDERER_H_ 5 #ifndef CC_GL_RENDERER_H_
6 #define CC_GL_RENDERER_H_ 6 #define CC_GL_RENDERER_H_
7 7
8 #include "cc/cc_export.h" 8 #include "cc/cc_export.h"
9 #include "cc/checkerboard_draw_quad.h" 9 #include "cc/checkerboard_draw_quad.h"
10 #include "cc/debug_border_draw_quad.h" 10 #include "cc/debug_border_draw_quad.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 bool makeContextCurrent(); 111 bool makeContextCurrent();
112 112
113 bool initializeSharedObjects(); 113 bool initializeSharedObjects();
114 void cleanupSharedObjects(); 114 void cleanupSharedObjects();
115 115
116 // WebKit::WebGraphicsContext3D::WebGraphicsSwapBuffersCompleteCallbackCHROM IUM implementation. 116 // WebKit::WebGraphicsContext3D::WebGraphicsSwapBuffersCompleteCallbackCHROM IUM implementation.
117 virtual void onSwapBuffersComplete() OVERRIDE; 117 virtual void onSwapBuffersComplete() OVERRIDE;
118 118
119 // WebKit::WebGraphicsContext3D::WebGraphicsMemoryAllocationChangedCallbackC HROMIUM implementation. 119 // WebKit::WebGraphicsContext3D::WebGraphicsMemoryAllocationChangedCallbackC HROMIUM implementation.
120 virtual void onMemoryAllocationChanged(WebKit::WebGraphicsMemoryAllocation) OVERRIDE; 120 virtual void onMemoryAllocationChanged(WebKit::WebGraphicsMemoryAllocation) OVERRIDE;
121 void onMemoryAllocationChangedOnImplThread(WebKit::WebGraphicsMemoryAllocati on);
121 void discardFramebuffer(); 122 void discardFramebuffer();
122 void ensureFramebuffer(); 123 void ensureFramebuffer();
123 void enforceMemoryPolicy(); 124 void enforceMemoryPolicy();
124 125
125 // WebGraphicsContext3D::WebGraphicsContextLostCallback implementation. 126 // WebGraphicsContext3D::WebGraphicsContextLostCallback implementation.
126 virtual void onContextLost() OVERRIDE; 127 virtual void onContextLost() OVERRIDE;
127 128
128 RendererCapabilities m_capabilities; 129 RendererCapabilities m_capabilities;
129 130
130 unsigned m_offscreenFramebufferId; 131 unsigned m_offscreenFramebufferId;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 #if DEBUG_GL_CALLS && !defined(NDEBUG) 229 #if DEBUG_GL_CALLS && !defined(NDEBUG)
229 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L INE__)) 230 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L INE__))
230 #else 231 #else
231 #define GLC(context, x) (x) 232 #define GLC(context, x) (x)
232 #endif 233 #endif
233 234
234 235
235 } 236 }
236 237
237 #endif // CC_GL_RENDERER_H_ 238 #endif // CC_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/frame_rate_counter.cc ('k') | cc/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698