| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 const RendererSettings* settings, | 67 const RendererSettings* settings, |
| 68 OutputSurface* output_surface, | 68 OutputSurface* output_surface, |
| 69 ResourceProvider* resource_provider); | 69 ResourceProvider* resource_provider); |
| 70 | 70 |
| 71 void DidChangeVisibility() override; | 71 void DidChangeVisibility() override; |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 void ClearCanvas(SkColor color); | 74 void ClearCanvas(SkColor color); |
| 75 void ClearFramebuffer(DrawingFrame* frame); | 75 void ClearFramebuffer(DrawingFrame* frame); |
| 76 void SetClipRect(const gfx::Rect& rect); | 76 void SetClipRect(const gfx::Rect& rect); |
| 77 bool IsSoftwareResource(ResourceProvider::ResourceId resource_id) const; | 77 bool IsSoftwareResource(ResourceId resource_id) const; |
| 78 | 78 |
| 79 void DrawCheckerboardQuad(const DrawingFrame* frame, | 79 void DrawCheckerboardQuad(const DrawingFrame* frame, |
| 80 const CheckerboardDrawQuad* quad); | 80 const CheckerboardDrawQuad* quad); |
| 81 void DrawDebugBorderQuad(const DrawingFrame* frame, | 81 void DrawDebugBorderQuad(const DrawingFrame* frame, |
| 82 const DebugBorderDrawQuad* quad); | 82 const DebugBorderDrawQuad* quad); |
| 83 void DrawPictureQuad(const DrawingFrame* frame, | 83 void DrawPictureQuad(const DrawingFrame* frame, |
| 84 const PictureDrawQuad* quad); | 84 const PictureDrawQuad* quad); |
| 85 void DrawRenderPassQuad(const DrawingFrame* frame, | 85 void DrawRenderPassQuad(const DrawingFrame* frame, |
| 86 const RenderPassDrawQuad* quad); | 86 const RenderPassDrawQuad* quad); |
| 87 void DrawSolidColorQuad(const DrawingFrame* frame, | 87 void DrawSolidColorQuad(const DrawingFrame* frame, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 106 current_framebuffer_lock_; | 106 current_framebuffer_lock_; |
| 107 skia::RefPtr<SkCanvas> current_framebuffer_canvas_; | 107 skia::RefPtr<SkCanvas> current_framebuffer_canvas_; |
| 108 scoped_ptr<SoftwareFrameData> current_frame_data_; | 108 scoped_ptr<SoftwareFrameData> current_frame_data_; |
| 109 | 109 |
| 110 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); | 110 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 } // namespace cc | 113 } // namespace cc |
| 114 | 114 |
| 115 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ | 115 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ |
| OLD | NEW |