| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 void DrawTileQuad(const DrawingFrame* frame, | 78 void DrawTileQuad(const DrawingFrame* frame, |
| 79 const TileDrawQuad* quad); | 79 const TileDrawQuad* quad); |
| 80 void DrawRenderPassQuad(const DrawingFrame* frame, | 80 void DrawRenderPassQuad(const DrawingFrame* frame, |
| 81 const RenderPassDrawQuad* quad); | 81 const RenderPassDrawQuad* quad); |
| 82 void DrawUnsupportedQuad(const DrawingFrame* frame, | 82 void DrawUnsupportedQuad(const DrawingFrame* frame, |
| 83 const DrawQuad* quad); | 83 const DrawQuad* quad); |
| 84 | 84 |
| 85 RendererCapabilities capabilities_; | 85 RendererCapabilities capabilities_; |
| 86 bool visible_; | 86 bool visible_; |
| 87 bool is_scissor_enabled_; | 87 bool is_scissor_enabled_; |
| 88 bool is_viewport_changed_; |
| 88 gfx::Rect scissor_rect_; | 89 gfx::Rect scissor_rect_; |
| 89 | 90 |
| 90 OutputSurface* output_surface_; | 91 OutputSurface* output_surface_; |
| 91 SoftwareOutputDevice* output_device_; | 92 SoftwareOutputDevice* output_device_; |
| 92 SkCanvas* root_canvas_; | 93 SkCanvas* root_canvas_; |
| 93 SkCanvas* current_canvas_; | 94 SkCanvas* current_canvas_; |
| 94 SkPaint current_paint_; | 95 SkPaint current_paint_; |
| 95 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> | 96 scoped_ptr<ResourceProvider::ScopedWriteLockSoftware> |
| 96 current_framebuffer_lock_; | 97 current_framebuffer_lock_; |
| 97 CompositorFrame compositor_frame_; | 98 CompositorFrame compositor_frame_; |
| 98 | 99 |
| 99 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); | 100 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); |
| 100 }; | 101 }; |
| 101 | 102 |
| 102 } // namespace cc | 103 } // namespace cc |
| 103 | 104 |
| 104 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ | 105 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ |
| OLD | NEW |