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 18 matching lines...) Expand all Loading... |
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 bool use_image_hijack_canvas); | 34 bool use_image_hijack_canvas); |
35 | 35 |
36 ~SoftwareRenderer() override; | 36 ~SoftwareRenderer() override; |
37 const RendererCapabilitiesImpl& Capabilities() const override; | 37 const RendererCapabilitiesImpl& Capabilities() const override; |
38 void Finish() override; | 38 void Finish() override; |
39 void SwapBuffers(const CompositorFrameMetadata& metadata) override; | 39 void SwapBuffers(CompositorFrameMetadata metadata) override; |
40 void DiscardBackbuffer() override; | 40 void DiscardBackbuffer() override; |
41 void EnsureBackbuffer() override; | 41 void EnsureBackbuffer() override; |
42 | 42 |
43 protected: | 43 protected: |
44 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; | 44 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; |
45 bool BindFramebufferToTexture(DrawingFrame* frame, | 45 bool BindFramebufferToTexture(DrawingFrame* frame, |
46 const ScopedResource* texture) override; | 46 const ScopedResource* texture) override; |
47 void SetScissorTestRect(const gfx::Rect& scissor_rect) override; | 47 void SetScissorTestRect(const gfx::Rect& scissor_rect) override; |
48 void PrepareSurfaceForPass(DrawingFrame* frame, | 48 void PrepareSurfaceForPass(DrawingFrame* frame, |
49 SurfaceInitializationMode initialization_mode, | 49 SurfaceInitializationMode initialization_mode, |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // draw when a GPU ImageDecodeController is in use, as software rasterization | 123 // draw when a GPU ImageDecodeController is in use, as software rasterization |
124 // cannot use the GPU IDC. | 124 // cannot use the GPU IDC. |
125 const bool use_image_hijack_canvas_; | 125 const bool use_image_hijack_canvas_; |
126 | 126 |
127 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); | 127 DISALLOW_COPY_AND_ASSIGN(SoftwareRenderer); |
128 }; | 128 }; |
129 | 129 |
130 } // namespace cc | 130 } // namespace cc |
131 | 131 |
132 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ | 132 #endif // CC_OUTPUT_SOFTWARE_RENDERER_H_ |
OLD | NEW |