| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 virtual void EnsureBackbuffer() OVERRIDE; | 50 virtual void EnsureBackbuffer() OVERRIDE; |
| 51 | 51 |
| 52 protected: | 52 protected: |
| 53 virtual void BindFramebufferToOutputSurface(DrawingFrame* frame) OVERRIDE; | 53 virtual void BindFramebufferToOutputSurface(DrawingFrame* frame) OVERRIDE; |
| 54 virtual bool BindFramebufferToTexture( | 54 virtual bool BindFramebufferToTexture( |
| 55 DrawingFrame* frame, | 55 DrawingFrame* frame, |
| 56 const ScopedResource* texture, | 56 const ScopedResource* texture, |
| 57 gfx::Rect target_rect) OVERRIDE; | 57 gfx::Rect target_rect) OVERRIDE; |
| 58 virtual void SetDrawViewport(gfx::Rect window_space_viewport) OVERRIDE; | 58 virtual void SetDrawViewport(gfx::Rect window_space_viewport) OVERRIDE; |
| 59 virtual void SetScissorTestRect(gfx::Rect scissor_rect) OVERRIDE; | 59 virtual void SetScissorTestRect(gfx::Rect scissor_rect) OVERRIDE; |
| 60 virtual void ClearFramebuffer(DrawingFrame* frame) OVERRIDE; | 60 virtual void DiscardPixels(bool has_external_stencil_test, |
| 61 bool draw_rect_covers_full_surface) OVERRIDE; |
| 62 virtual void ClearFramebuffer(DrawingFrame* frame, |
| 63 bool has_external_stencil_test) OVERRIDE; |
| 61 virtual void DoDrawQuad(DrawingFrame* frame, const DrawQuad* quad) OVERRIDE; | 64 virtual void DoDrawQuad(DrawingFrame* frame, const DrawQuad* quad) OVERRIDE; |
| 62 virtual void BeginDrawingFrame(DrawingFrame* frame) OVERRIDE; | 65 virtual void BeginDrawingFrame(DrawingFrame* frame) OVERRIDE; |
| 63 virtual void FinishDrawingFrame(DrawingFrame* frame) OVERRIDE; | 66 virtual void FinishDrawingFrame(DrawingFrame* frame) OVERRIDE; |
| 64 virtual bool FlippedFramebuffer() const OVERRIDE; | 67 virtual bool FlippedFramebuffer() const OVERRIDE; |
| 65 virtual void EnsureScissorTestEnabled() OVERRIDE; | 68 virtual void EnsureScissorTestEnabled() OVERRIDE; |
| 66 virtual void EnsureScissorTestDisabled() OVERRIDE; | 69 virtual void EnsureScissorTestDisabled() OVERRIDE; |
| 67 virtual void CopyCurrentRenderPassToBitmap( | 70 virtual void CopyCurrentRenderPassToBitmap( |
| 68 DrawingFrame* frame, | 71 DrawingFrame* frame, |
| 69 scoped_ptr<CopyOutputRequest> request) OVERRIDE; | 72 scoped_ptr<CopyOutputRequest> request) OVERRIDE; |
| 70 | 73 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> | 111 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> |
| 109 current_framebuffer_lock_; | 112 current_framebuffer_lock_; |
| 110 scoped_ptr<SoftwareFrameData> current_frame_data_; | 113 scoped_ptr<SoftwareFrameData> current_frame_data_; |
| 111 | 114 |
| 112 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); | 115 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); |
| 113 }; | 116 }; |
| 114 | 117 |
| 115 } // namespace cc | 118 } // namespace cc |
| 116 | 119 |
| 117 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ | 120 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ |
| OLD | NEW |