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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 virtual void SetScissorTestRect(gfx::Rect scissor_rect) OVERRIDE; | 55 virtual void SetScissorTestRect(gfx::Rect scissor_rect) OVERRIDE; |
56 virtual void ClearFramebuffer(DrawingFrame* frame) OVERRIDE; | 56 virtual void ClearFramebuffer(DrawingFrame* frame) OVERRIDE; |
57 virtual void DoDrawQuad(DrawingFrame* frame, const DrawQuad* quad) OVERRIDE; | 57 virtual void DoDrawQuad(DrawingFrame* frame, const DrawQuad* quad) OVERRIDE; |
58 virtual void BeginDrawingFrame(DrawingFrame* frame) OVERRIDE; | 58 virtual void BeginDrawingFrame(DrawingFrame* frame) OVERRIDE; |
59 virtual void FinishDrawingFrame(DrawingFrame* frame) OVERRIDE; | 59 virtual void FinishDrawingFrame(DrawingFrame* frame) OVERRIDE; |
60 virtual bool FlippedFramebuffer() const OVERRIDE; | 60 virtual bool FlippedFramebuffer() const OVERRIDE; |
61 virtual void EnsureScissorTestEnabled() OVERRIDE; | 61 virtual void EnsureScissorTestEnabled() OVERRIDE; |
62 virtual void EnsureScissorTestDisabled() OVERRIDE; | 62 virtual void EnsureScissorTestDisabled() OVERRIDE; |
63 virtual void CopyCurrentRenderPassToBitmap( | 63 virtual void CopyCurrentRenderPassToBitmap( |
64 DrawingFrame* frame, | 64 DrawingFrame* frame, |
65 const CopyRenderPassCallback& callback) OVERRIDE; | 65 scoped_ptr<CopyOutputRequest> request) OVERRIDE; |
66 | 66 |
67 private: | 67 private: |
68 SoftwareRenderer( | 68 SoftwareRenderer( |
69 RendererClient* client, | 69 RendererClient* client, |
70 OutputSurface* output_surface, | 70 OutputSurface* output_surface, |
71 ResourceProvider* resource_provider); | 71 ResourceProvider* resource_provider); |
72 | 72 |
73 void ClearCanvas(SkColor color); | 73 void ClearCanvas(SkColor color); |
74 void SetClipRect(gfx::Rect rect); | 74 void SetClipRect(gfx::Rect rect); |
75 bool IsSoftwareResource(ResourceProvider::ResourceId resource_id) const; | 75 bool IsSoftwareResource(ResourceProvider::ResourceId resource_id) const; |
(...skipping 27 matching lines...) Expand all Loading... |
103 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> | 103 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> |
104 current_framebuffer_lock_; | 104 current_framebuffer_lock_; |
105 CompositorFrame compositor_frame_; | 105 CompositorFrame compositor_frame_; |
106 | 106 |
107 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); | 107 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); |
108 }; | 108 }; |
109 | 109 |
110 } // namespace cc | 110 } // namespace cc |
111 | 111 |
112 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ | 112 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ |
OLD | NEW |