| 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 16 matching lines...) Expand all Loading... |
| 27 class CC_EXPORT SoftwareRenderer : public DirectRenderer { | 27 class CC_EXPORT SoftwareRenderer : public DirectRenderer { |
| 28 public: | 28 public: |
| 29 static std::unique_ptr<SoftwareRenderer> Create( | 29 static std::unique_ptr<SoftwareRenderer> Create( |
| 30 RendererClient* client, | 30 RendererClient* client, |
| 31 const RendererSettings* settings, | 31 const RendererSettings* settings, |
| 32 OutputSurface* output_surface, | 32 OutputSurface* output_surface, |
| 33 ResourceProvider* resource_provider); | 33 ResourceProvider* resource_provider); |
| 34 | 34 |
| 35 ~SoftwareRenderer() override; | 35 ~SoftwareRenderer() override; |
| 36 const RendererCapabilitiesImpl& Capabilities() const override; | 36 const RendererCapabilitiesImpl& Capabilities() const override; |
| 37 void Finish() override; | |
| 38 void SwapBuffers(CompositorFrameMetadata metadata) override; | 37 void SwapBuffers(CompositorFrameMetadata metadata) override; |
| 39 void DiscardBackbuffer() override; | 38 void DiscardBackbuffer() override; |
| 40 void EnsureBackbuffer() override; | 39 void EnsureBackbuffer() override; |
| 41 | 40 |
| 42 void SetDisablePictureQuadImageFiltering(bool disable) { | 41 void SetDisablePictureQuadImageFiltering(bool disable) { |
| 43 disable_picture_quad_image_filtering_ = disable; | 42 disable_picture_quad_image_filtering_ = disable; |
| 44 } | 43 } |
| 45 | 44 |
| 46 protected: | 45 protected: |
| 47 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; | 46 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 std::unique_ptr<ResourceProvider::ScopedWriteLockSoftware> | 119 std::unique_ptr<ResourceProvider::ScopedWriteLockSoftware> |
| 121 current_framebuffer_lock_; | 120 current_framebuffer_lock_; |
| 122 sk_sp<SkCanvas> current_framebuffer_canvas_; | 121 sk_sp<SkCanvas> current_framebuffer_canvas_; |
| 123 | 122 |
| 124 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); | 123 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); |
| 125 }; | 124 }; |
| 126 | 125 |
| 127 } // namespace cc | 126 } // namespace cc |
| 128 | 127 |
| 129 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ | 128 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ |
| OLD | NEW |