| 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/macros.h" | 8 #include "base/macros.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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 gfx::Rect GetBackdropBoundingBoxForRenderPassQuad( | 99 gfx::Rect GetBackdropBoundingBoxForRenderPassQuad( |
| 100 const DrawingFrame* frame, | 100 const DrawingFrame* frame, |
| 101 const RenderPassDrawQuad* quad, | 101 const RenderPassDrawQuad* quad, |
| 102 const gfx::Transform& contents_device_transform) const; | 102 const gfx::Transform& contents_device_transform) const; |
| 103 SkBitmap GetBackdropBitmap(const gfx::Rect& bounding_rect) const; | 103 SkBitmap GetBackdropBitmap(const gfx::Rect& bounding_rect) const; |
| 104 sk_sp<SkShader> GetBackgroundFilterShader( | 104 sk_sp<SkShader> GetBackgroundFilterShader( |
| 105 const DrawingFrame* frame, | 105 const DrawingFrame* frame, |
| 106 const RenderPassDrawQuad* quad, | 106 const RenderPassDrawQuad* quad, |
| 107 SkShader::TileMode content_tile_mode) const; | 107 SkShader::TileMode content_tile_mode) const; |
| 108 | 108 |
| 109 // RenderPassDrawQuadCopier |
| 110 bool CopyRenderPassDrawQuadToIOSurface(const RenderPassDrawQuad* quad, |
| 111 ResourceId* resource_id) override; |
| 112 void ReleaseIOSurfaces(const std::vector<ResourceId>& resources) override; |
| 113 void UpdateCopyCountForFrame(size_t count) override; |
| 114 |
| 109 bool disable_picture_quad_image_filtering_ = false; | 115 bool disable_picture_quad_image_filtering_ = false; |
| 110 | 116 |
| 111 RendererCapabilitiesImpl capabilities_; | 117 RendererCapabilitiesImpl capabilities_; |
| 112 bool is_scissor_enabled_; | 118 bool is_scissor_enabled_; |
| 113 bool is_backbuffer_discarded_; | 119 bool is_backbuffer_discarded_; |
| 114 gfx::Rect scissor_rect_; | 120 gfx::Rect scissor_rect_; |
| 115 | 121 |
| 116 SoftwareOutputDevice* output_device_; | 122 SoftwareOutputDevice* output_device_; |
| 117 SkCanvas* root_canvas_; | 123 SkCanvas* root_canvas_; |
| 118 SkCanvas* current_canvas_; | 124 SkCanvas* current_canvas_; |
| 119 SkPaint current_paint_; | 125 SkPaint current_paint_; |
| 120 std::unique_ptr<ResourceProvider::ScopedWriteLockSoftware> | 126 std::unique_ptr<ResourceProvider::ScopedWriteLockSoftware> |
| 121 current_framebuffer_lock_; | 127 current_framebuffer_lock_; |
| 122 sk_sp<SkCanvas> current_framebuffer_canvas_; | 128 sk_sp<SkCanvas> current_framebuffer_canvas_; |
| 123 | 129 |
| 124 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); | 130 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); |
| 125 }; | 131 }; |
| 126 | 132 |
| 127 } // namespace cc | 133 } // namespace cc |
| 128 | 134 |
| 129 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ | 135 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ |
| OLD | NEW |