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

Side by Side Diff: cc/gl_renderer.h

Issue 11378004: Remove DirectRenderer::disableScissorTest, always leave GL_SCISSOR_TEST enabled in GlRenderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: enableSci.. -> setSci... 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/direct_renderer.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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 const gfx::QuadF& sharedGeometryQuad() const { return m_sharedGeometryQuad; } 71 const gfx::QuadF& sharedGeometryQuad() const { return m_sharedGeometryQuad; }
72 const GeometryBinding* sharedGeometry() const { return m_sharedGeometry.get( ); } 72 const GeometryBinding* sharedGeometry() const { return m_sharedGeometry.get( ); }
73 73
74 bool getFramebufferTexture(ScopedTexture*, const gfx::Rect& deviceRect); 74 bool getFramebufferTexture(ScopedTexture*, const gfx::Rect& deviceRect);
75 void releaseRenderPassTextures(); 75 void releaseRenderPassTextures();
76 76
77 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE; 77 virtual void bindFramebufferToOutputSurface(DrawingFrame&) OVERRIDE;
78 virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedTexture*, c onst gfx::Rect& framebufferRect) OVERRIDE; 78 virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedTexture*, c onst gfx::Rect& framebufferRect) OVERRIDE;
79 virtual void setDrawViewportSize(const gfx::Size&) OVERRIDE; 79 virtual void setDrawViewportSize(const gfx::Size&) OVERRIDE;
80 virtual void enableScissorTestRect(const gfx::Rect& scissorRect) OVERRIDE; 80 virtual void setScissorTestRect(const gfx::Rect& scissorRect) OVERRIDE;
81 virtual void disableScissorTest() OVERRIDE;
82 virtual void clearFramebuffer(DrawingFrame&) OVERRIDE; 81 virtual void clearFramebuffer(DrawingFrame&) OVERRIDE;
83 virtual void drawQuad(DrawingFrame&, const DrawQuad*) OVERRIDE; 82 virtual void drawQuad(DrawingFrame&, const DrawQuad*) OVERRIDE;
84 virtual void beginDrawingFrame(DrawingFrame&) OVERRIDE; 83 virtual void beginDrawingFrame(DrawingFrame&) OVERRIDE;
85 virtual void finishDrawingFrame(DrawingFrame&) OVERRIDE; 84 virtual void finishDrawingFrame(DrawingFrame&) OVERRIDE;
86 virtual bool flippedFramebuffer() const OVERRIDE; 85 virtual bool flippedFramebuffer() const OVERRIDE;
87 86
88 private: 87 private:
89 static void toGLMatrix(float*, const WebKit::WebTransformationMatrix&); 88 static void toGLMatrix(float*, const WebKit::WebTransformationMatrix&);
90 static int priorityCutoffValue(WebKit::WebGraphicsMemoryAllocation::Priority Cutoff); 89 static int priorityCutoffValue(WebKit::WebGraphicsMemoryAllocation::Priority Cutoff);
91 90
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 #if DEBUG_GL_CALLS && !defined(NDEBUG) 228 #if DEBUG_GL_CALLS && !defined(NDEBUG)
230 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L INE__)) 229 #define GLC(context, x) (x, GLRenderer::debugGLCall(&*context, #x, __FILE__, __L INE__))
231 #else 230 #else
232 #define GLC(context, x) (x) 231 #define GLC(context, x) (x)
233 #endif 232 #endif
234 233
235 234
236 } 235 }
237 236
238 #endif // CC_GL_RENDERER_H_ 237 #endif // CC_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/direct_renderer.cc ('k') | cc/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698