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

Side by Side Diff: cc/gl_renderer.h

Issue 11637022: Send memory management policies to the tile manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | « no previous file | cc/gl_renderer.cc » ('j') | cc/layer_tree_host_impl.cc » ('J')
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 virtual void drawQuad(DrawingFrame&, const DrawQuad*) OVERRIDE; 82 virtual void drawQuad(DrawingFrame&, const DrawQuad*) OVERRIDE;
83 virtual void beginDrawingFrame(DrawingFrame&) OVERRIDE; 83 virtual void beginDrawingFrame(DrawingFrame&) OVERRIDE;
84 virtual void finishDrawingFrame(DrawingFrame&) OVERRIDE; 84 virtual void finishDrawingFrame(DrawingFrame&) OVERRIDE;
85 virtual bool flippedFramebuffer() const OVERRIDE; 85 virtual bool flippedFramebuffer() const OVERRIDE;
86 virtual void ensureScissorTestEnabled() OVERRIDE; 86 virtual void ensureScissorTestEnabled() OVERRIDE;
87 virtual void ensureScissorTestDisabled() OVERRIDE; 87 virtual void ensureScissorTestDisabled() OVERRIDE;
88 virtual void finishDrawingQuadList() OVERRIDE; 88 virtual void finishDrawingQuadList() OVERRIDE;
89 89
90 private: 90 private:
91 static void toGLMatrix(float*, const gfx::Transform&); 91 static void toGLMatrix(float*, const gfx::Transform&);
92 static int priorityCutoffValue(WebKit::WebGraphicsMemoryAllocation::Priority Cutoff); 92 static ManagedMemoryPolicy::PriorityCutoff priorityCutoffValue(WebKit::WebGr aphicsMemoryAllocation::PriorityCutoff);
nduca 2012/12/19 21:46:32 When I looked at this last, i was thinking we had
93 93
94 void drawCheckerboardQuad(const DrawingFrame&, const CheckerboardDrawQuad*); 94 void drawCheckerboardQuad(const DrawingFrame&, const CheckerboardDrawQuad*);
95 void drawDebugBorderQuad(const DrawingFrame&, const DebugBorderDrawQuad*); 95 void drawDebugBorderQuad(const DrawingFrame&, const DebugBorderDrawQuad*);
96 scoped_ptr<ScopedResource> drawBackgroundFilters( 96 scoped_ptr<ScopedResource> drawBackgroundFilters(
97 DrawingFrame&, const RenderPassDrawQuad*, 97 DrawingFrame&, const RenderPassDrawQuad*,
98 const WebKit::WebFilterOperations&, 98 const WebKit::WebFilterOperations&,
99 const gfx::Transform& contentsDeviceTransform, 99 const gfx::Transform& contentsDeviceTransform,
100 const gfx::Transform& contentsDeviceTransformInverse); 100 const gfx::Transform& contentsDeviceTransformInverse);
101 void drawRenderPassQuad(DrawingFrame&, const RenderPassDrawQuad*); 101 void drawRenderPassQuad(DrawingFrame&, const RenderPassDrawQuad*);
102 void drawSolidColorQuad(const DrawingFrame&, const SolidColorDrawQuad*); 102 void drawSolidColorQuad(const DrawingFrame&, const SolidColorDrawQuad*);
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 #if DEBUG_GL_CALLS && !defined(NDEBUG) 244 #if DEBUG_GL_CALLS && !defined(NDEBUG)
245 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L INE__)) 245 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L INE__))
246 #else 246 #else
247 #define GLC(context, x) (x) 247 #define GLC(context, x) (x)
248 #endif 248 #endif
249 249
250 250
251 } 251 }
252 252
253 #endif // CC_GL_RENDERER_H_ 253 #endif // CC_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/gl_renderer.cc » ('j') | cc/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698