| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; | 45 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; |
| 46 bool BindFramebufferToTexture(DrawingFrame* frame, | 46 bool BindFramebufferToTexture(DrawingFrame* frame, |
| 47 const ScopedResource* texture, | 47 const ScopedResource* texture, |
| 48 const gfx::Rect& target_rect) override; | 48 const gfx::Rect& target_rect) override; |
| 49 void SetDrawViewport(const gfx::Rect& window_space_viewport) override; | 49 void SetDrawViewport(const gfx::Rect& window_space_viewport) override; |
| 50 void SetScissorTestRect(const gfx::Rect& scissor_rect) override; | 50 void SetScissorTestRect(const gfx::Rect& scissor_rect) override; |
| 51 void DiscardPixels(bool has_external_stencil_test, | 51 void DiscardPixels(bool has_external_stencil_test, |
| 52 bool draw_rect_covers_full_surface) override; | 52 bool draw_rect_covers_full_surface) override; |
| 53 void ClearFramebuffer(DrawingFrame* frame, | 53 void ClearFramebuffer(DrawingFrame* frame, |
| 54 bool has_external_stencil_test) override; | 54 bool has_external_stencil_test) override; |
| 55 | 55 void DoDrawQuad(DrawingFrame* frame, const DrawQuad* quad) override; |
| 56 void DoDrawQuad(DrawingFrame* frame, | |
| 57 const DrawQuad* quad, | |
| 58 const gfx::QuadF* draw_region) override; | |
| 59 void BeginDrawingFrame(DrawingFrame* frame) override; | 56 void BeginDrawingFrame(DrawingFrame* frame) override; |
| 60 void FinishDrawingFrame(DrawingFrame* frame) override; | 57 void FinishDrawingFrame(DrawingFrame* frame) override; |
| 61 bool FlippedFramebuffer(const DrawingFrame* frame) const override; | 58 bool FlippedFramebuffer(const DrawingFrame* frame) const override; |
| 62 void EnsureScissorTestEnabled() override; | 59 void EnsureScissorTestEnabled() override; |
| 63 void EnsureScissorTestDisabled() override; | 60 void EnsureScissorTestDisabled() override; |
| 64 void CopyCurrentRenderPassToBitmap( | 61 void CopyCurrentRenderPassToBitmap( |
| 65 DrawingFrame* frame, | 62 DrawingFrame* frame, |
| 66 scoped_ptr<CopyOutputRequest> request) override; | 63 scoped_ptr<CopyOutputRequest> request) override; |
| 67 | 64 |
| 68 SoftwareRenderer(RendererClient* client, | 65 SoftwareRenderer(RendererClient* client, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 current_framebuffer_lock_; | 104 current_framebuffer_lock_; |
| 108 skia::RefPtr<SkCanvas> current_framebuffer_canvas_; | 105 skia::RefPtr<SkCanvas> current_framebuffer_canvas_; |
| 109 scoped_ptr<SoftwareFrameData> current_frame_data_; | 106 scoped_ptr<SoftwareFrameData> current_frame_data_; |
| 110 | 107 |
| 111 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); | 108 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); |
| 112 }; | 109 }; |
| 113 | 110 |
| 114 } // namespace cc | 111 } // namespace cc |
| 115 | 112 |
| 116 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ | 113 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ |
| OLD | NEW |