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

Side by Side Diff: cc/direct_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: 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 | « no previous file | cc/gl_renderer.h » ('j') | cc/gl_renderer.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_DIRECT_RENDERER_H_ 5 #ifndef CC_DIRECT_RENDERER_H_
6 #define CC_DIRECT_RENDERER_H_ 6 #define CC_DIRECT_RENDERER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "cc/cc_export.h" 9 #include "cc/cc_export.h"
10 #include "cc/renderer.h" 10 #include "cc/renderer.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 static gfx::Size renderPassTextureSize(const RenderPass*); 80 static gfx::Size renderPassTextureSize(const RenderPass*);
81 static GLenum renderPassTextureFormat(const RenderPass*); 81 static GLenum renderPassTextureFormat(const RenderPass*);
82 82
83 void drawRenderPass(DrawingFrame&, const RenderPass*); 83 void drawRenderPass(DrawingFrame&, const RenderPass*);
84 bool useRenderPass(DrawingFrame&, const RenderPass*); 84 bool useRenderPass(DrawingFrame&, const RenderPass*);
85 85
86 virtual void bindFramebufferToOutputSurface(DrawingFrame&) = 0; 86 virtual void bindFramebufferToOutputSurface(DrawingFrame&) = 0;
87 virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedTexture*, c onst gfx::Rect& framebufferRect) = 0; 87 virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedTexture*, c onst gfx::Rect& framebufferRect) = 0;
88 virtual void setDrawViewportSize(const gfx::Size&) = 0; 88 virtual void setDrawViewportSize(const gfx::Size&) = 0;
89 virtual void enableScissorTestRect(const gfx::Rect& scissorRect) = 0; 89 virtual void enableScissorTestRect(const gfx::Rect& scissorRect) = 0;
90 virtual void disableScissorTest() = 0;
91 virtual void clearFramebuffer(DrawingFrame&) = 0; 90 virtual void clearFramebuffer(DrawingFrame&) = 0;
92 virtual void drawQuad(DrawingFrame&, const DrawQuad*) = 0; 91 virtual void drawQuad(DrawingFrame&, const DrawQuad*) = 0;
93 virtual void beginDrawingFrame(DrawingFrame&) = 0; 92 virtual void beginDrawingFrame(DrawingFrame&) = 0;
94 virtual void finishDrawingFrame(DrawingFrame&) = 0; 93 virtual void finishDrawingFrame(DrawingFrame&) = 0;
95 virtual bool flippedFramebuffer() const = 0; 94 virtual bool flippedFramebuffer() const = 0;
96 95
97 ScopedPtrHashMap<RenderPass::Id, CachedTexture> m_renderPassTextures; 96 ScopedPtrHashMap<RenderPass::Id, CachedTexture> m_renderPassTextures;
98 ResourceProvider* m_resourceProvider; 97 ResourceProvider* m_resourceProvider;
99 98
100 private: 99 private:
101 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 100 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
102 }; 101 };
103 102
104 } // namespace cc 103 } // namespace cc
105 104
106 #endif // CC_DIRECT_RENDERER_H_ 105 #endif // CC_DIRECT_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/gl_renderer.h » ('j') | cc/gl_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698