OLD | NEW |
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 bool useRenderPass(DrawingFrame&, const RenderPass*); | 86 bool useRenderPass(DrawingFrame&, const RenderPass*); |
87 | 87 |
88 virtual void bindFramebufferToOutputSurface(DrawingFrame&) = 0; | 88 virtual void bindFramebufferToOutputSurface(DrawingFrame&) = 0; |
89 virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedResource*,
const gfx::Rect& framebufferRect) = 0; | 89 virtual bool bindFramebufferToTexture(DrawingFrame&, const ScopedResource*,
const gfx::Rect& framebufferRect) = 0; |
90 virtual void setDrawViewportSize(const gfx::Size&) = 0; | 90 virtual void setDrawViewportSize(const gfx::Size&) = 0; |
91 virtual void setScissorTestRect(const gfx::Rect& scissorRect) = 0; | 91 virtual void setScissorTestRect(const gfx::Rect& scissorRect) = 0; |
92 virtual void clearFramebuffer(DrawingFrame&) = 0; | 92 virtual void clearFramebuffer(DrawingFrame&) = 0; |
93 virtual void drawQuad(DrawingFrame&, const DrawQuad*) = 0; | 93 virtual void drawQuad(DrawingFrame&, const DrawQuad*) = 0; |
94 virtual void beginDrawingFrame(DrawingFrame&) = 0; | 94 virtual void beginDrawingFrame(DrawingFrame&) = 0; |
95 virtual void finishDrawingFrame(DrawingFrame&) = 0; | 95 virtual void finishDrawingFrame(DrawingFrame&) = 0; |
| 96 virtual void finishDrawingQuadList(); |
96 virtual bool flippedFramebuffer() const = 0; | 97 virtual bool flippedFramebuffer() const = 0; |
97 virtual void ensureScissorTestEnabled() = 0; | 98 virtual void ensureScissorTestEnabled() = 0; |
98 virtual void ensureScissorTestDisabled() = 0; | 99 virtual void ensureScissorTestDisabled() = 0; |
99 | 100 |
100 ScopedPtrHashMap<RenderPass::Id, CachedResource> m_renderPassTextures; | 101 ScopedPtrHashMap<RenderPass::Id, CachedResource> m_renderPassTextures; |
101 ResourceProvider* m_resourceProvider; | 102 ResourceProvider* m_resourceProvider; |
102 | 103 |
103 private: | 104 private: |
104 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); | 105 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); |
105 }; | 106 }; |
106 | 107 |
107 } // namespace cc | 108 } // namespace cc |
108 | 109 |
109 #endif // CC_DIRECT_RENDERER_H_ | 110 #endif // CC_DIRECT_RENDERER_H_ |
OLD | NEW |