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

Side by Side Diff: cc/output/gl_renderer.h

Issue 208213003: Plumb overlay processing into DirectRenderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Exporting resources Created 6 years, 9 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 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_OUTPUT_GL_RENDERER_H_ 5 #ifndef CC_OUTPUT_GL_RENDERER_H_
6 #define CC_OUTPUT_GL_RENDERER_H_ 6 #define CC_OUTPUT_GL_RENDERER_H_
7 7
8 #include "base/cancelable_callback.h" 8 #include "base/cancelable_callback.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/base/scoped_ptr_vector.h" 10 #include "cc/base/scoped_ptr_vector.h"
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 scoped_ptr<SkAutoLockPixels> lock, 213 scoped_ptr<SkAutoLockPixels> lock,
214 scoped_ptr<CopyOutputRequest> request, 214 scoped_ptr<CopyOutputRequest> request,
215 bool success); 215 bool success);
216 216
217 void ReinitializeGLState(); 217 void ReinitializeGLState();
218 218
219 virtual void DiscardBackbuffer() OVERRIDE; 219 virtual void DiscardBackbuffer() OVERRIDE;
220 virtual void EnsureBackbuffer() OVERRIDE; 220 virtual void EnsureBackbuffer() OVERRIDE;
221 void EnforceMemoryPolicy(); 221 void EnforceMemoryPolicy();
222 222
223 void ScheduleOverlays(DrawingFrame* frame);
224
225 TransferableResourceArray pending_overlay_resources_;
226 TransferableResourceArray in_use_overlay_resources_;
227 int overlay_child_;
228
223 RendererCapabilitiesImpl capabilities_; 229 RendererCapabilitiesImpl capabilities_;
224 230
225 unsigned offscreen_framebuffer_id_; 231 unsigned offscreen_framebuffer_id_;
226 232
227 scoped_ptr<GeometryBinding> shared_geometry_; 233 scoped_ptr<GeometryBinding> shared_geometry_;
228 gfx::QuadF shared_geometry_quad_; 234 gfx::QuadF shared_geometry_quad_;
229 235
230 // This block of bindings defines all of the programs used by the compositor 236 // This block of bindings defines all of the programs used by the compositor
231 // itself. Add any new programs here to GLRendererShaderTest. 237 // itself. Add any new programs here to GLRendererShaderTest.
232 238
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 #if DEBUG_GL_CALLS && !defined(NDEBUG) 446 #if DEBUG_GL_CALLS && !defined(NDEBUG)
441 #define GLC(context, x) \ 447 #define GLC(context, x) \
442 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) 448 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__))
443 #else 449 #else
444 #define GLC(context, x) (x) 450 #define GLC(context, x) (x)
445 #endif 451 #endif
446 452
447 } // namespace cc 453 } // namespace cc
448 454
449 #endif // CC_OUTPUT_GL_RENDERER_H_ 455 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | cc/output/gl_renderer.cc » ('j') | cc/output/gl_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698