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/direct_renderer.h" | 10 #include "cc/output/direct_renderer.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 ~SoftwareRenderer() override; | 30 ~SoftwareRenderer() override; |
31 | 31 |
32 void SwapBuffers(std::vector<ui::LatencyInfo> latency_info) override; | 32 void SwapBuffers(std::vector<ui::LatencyInfo> latency_info) override; |
33 | 33 |
34 void SetDisablePictureQuadImageFiltering(bool disable) { | 34 void SetDisablePictureQuadImageFiltering(bool disable) { |
35 disable_picture_quad_image_filtering_ = disable; | 35 disable_picture_quad_image_filtering_ = disable; |
36 } | 36 } |
37 | 37 |
38 protected: | 38 protected: |
39 bool CanPartialSwap() override; | 39 bool CanPartialSwap() override; |
| 40 ResourceFormat BackbufferFormat() const override; |
40 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; | 41 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; |
41 bool BindFramebufferToTexture(DrawingFrame* frame, | 42 bool BindFramebufferToTexture(DrawingFrame* frame, |
42 const ScopedResource* texture) override; | 43 const ScopedResource* texture) override; |
43 void SetScissorTestRect(const gfx::Rect& scissor_rect) override; | 44 void SetScissorTestRect(const gfx::Rect& scissor_rect) override; |
44 void PrepareSurfaceForPass(DrawingFrame* frame, | 45 void PrepareSurfaceForPass(DrawingFrame* frame, |
45 SurfaceInitializationMode initialization_mode, | 46 SurfaceInitializationMode initialization_mode, |
46 const gfx::Rect& render_pass_scissor) override; | 47 const gfx::Rect& render_pass_scissor) override; |
47 void DoDrawQuad(DrawingFrame* frame, | 48 void DoDrawQuad(DrawingFrame* frame, |
48 const DrawQuad* quad, | 49 const DrawQuad* quad, |
49 const gfx::QuadF* draw_region) override; | 50 const gfx::QuadF* draw_region) override; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 std::unique_ptr<ResourceProvider::ScopedWriteLockSoftware> | 109 std::unique_ptr<ResourceProvider::ScopedWriteLockSoftware> |
109 current_framebuffer_lock_; | 110 current_framebuffer_lock_; |
110 std::unique_ptr<SkCanvas> current_framebuffer_canvas_; | 111 std::unique_ptr<SkCanvas> current_framebuffer_canvas_; |
111 | 112 |
112 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); | 113 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); |
113 }; | 114 }; |
114 | 115 |
115 } // namespace cc | 116 } // namespace cc |
116 | 117 |
117 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ | 118 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ |
OLD | NEW |