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_OUTPUT_SOFTWARE_RENDERER_H_ | 5 #ifndef CC_OUTPUT_SOFTWARE_RENDERER_H_ |
6 #define CC_OUTPUT_SOFTWARE_RENDERER_H_ | 6 #define CC_OUTPUT_SOFTWARE_RENDERER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
10 #include "cc/output/compositor_frame.h" | 10 #include "cc/output/compositor_frame.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual bool BindFramebufferToTexture( | 47 virtual bool BindFramebufferToTexture( |
48 DrawingFrame* frame, | 48 DrawingFrame* frame, |
49 const ScopedResource* texture, | 49 const ScopedResource* texture, |
50 const gfx::Rect& target_rect) OVERRIDE; | 50 const gfx::Rect& target_rect) OVERRIDE; |
51 virtual void SetDrawViewport(const gfx::Rect& window_space_viewport) OVERRIDE; | 51 virtual void SetDrawViewport(const gfx::Rect& window_space_viewport) OVERRIDE; |
52 virtual void SetScissorTestRect(const gfx::Rect& scissor_rect) OVERRIDE; | 52 virtual void SetScissorTestRect(const gfx::Rect& scissor_rect) OVERRIDE; |
53 virtual void DiscardPixels(bool has_external_stencil_test, | 53 virtual void DiscardPixels(bool has_external_stencil_test, |
54 bool draw_rect_covers_full_surface) OVERRIDE; | 54 bool draw_rect_covers_full_surface) OVERRIDE; |
55 virtual void ClearFramebuffer(DrawingFrame* frame, | 55 virtual void ClearFramebuffer(DrawingFrame* frame, |
56 bool has_external_stencil_test) OVERRIDE; | 56 bool has_external_stencil_test) OVERRIDE; |
57 virtual void DoDrawQuad(DrawingFrame* frame, const DrawQuad* quad) OVERRIDE; | 57 virtual void DoDrawQuad(DrawingFrame* frame, |
| 58 const DrawQuad* quad, |
| 59 const gfx::QuadF* draw_region = NULL) OVERRIDE; |
58 virtual void BeginDrawingFrame(DrawingFrame* frame) OVERRIDE; | 60 virtual void BeginDrawingFrame(DrawingFrame* frame) OVERRIDE; |
59 virtual void FinishDrawingFrame(DrawingFrame* frame) OVERRIDE; | 61 virtual void FinishDrawingFrame(DrawingFrame* frame) OVERRIDE; |
60 virtual bool FlippedFramebuffer() const OVERRIDE; | 62 virtual bool FlippedFramebuffer() const OVERRIDE; |
61 virtual void EnsureScissorTestEnabled() OVERRIDE; | 63 virtual void EnsureScissorTestEnabled() OVERRIDE; |
62 virtual void EnsureScissorTestDisabled() OVERRIDE; | 64 virtual void EnsureScissorTestDisabled() OVERRIDE; |
63 virtual void CopyCurrentRenderPassToBitmap( | 65 virtual void CopyCurrentRenderPassToBitmap( |
64 DrawingFrame* frame, | 66 DrawingFrame* frame, |
65 scoped_ptr<CopyOutputRequest> request) OVERRIDE; | 67 scoped_ptr<CopyOutputRequest> request) OVERRIDE; |
66 | 68 |
67 SoftwareRenderer(RendererClient* client, | 69 SoftwareRenderer(RendererClient* client, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> | 107 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> |
106 current_framebuffer_lock_; | 108 current_framebuffer_lock_; |
107 scoped_ptr<SoftwareFrameData> current_frame_data_; | 109 scoped_ptr<SoftwareFrameData> current_frame_data_; |
108 | 110 |
109 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); | 111 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); |
110 }; | 112 }; |
111 | 113 |
112 } // namespace cc | 114 } // namespace cc |
113 | 115 |
114 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ | 116 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ |
OLD | NEW |