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_OUTPUT_SURFACE_H_ | 5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_H_ |
6 #define CC_OUTPUT_OUTPUT_SURFACE_H_ | 6 #define CC_OUTPUT_OUTPUT_SURFACE_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 virtual void BindToClient(OutputSurfaceClient* client) = 0; | 77 virtual void BindToClient(OutputSurfaceClient* client) = 0; |
78 | 78 |
79 virtual void EnsureBackbuffer() = 0; | 79 virtual void EnsureBackbuffer() = 0; |
80 virtual void DiscardBackbuffer() = 0; | 80 virtual void DiscardBackbuffer() = 0; |
81 | 81 |
82 // Bind the default framebuffer for drawing to, only valid for GL backed | 82 // Bind the default framebuffer for drawing to, only valid for GL backed |
83 // OutputSurfaces. | 83 // OutputSurfaces. |
84 virtual void BindFramebuffer() = 0; | 84 virtual void BindFramebuffer() = 0; |
85 | 85 |
86 // Marks that the given rectangle will be drawn to on the default, bound | 86 // Marks that the given rectangle will be drawn to on the default, bound |
87 // framebuffer. Only valid for surfaces with set_draw_rectangle in the | 87 // framebuffer. Only valid for surfaces with dc_layers in the context |
88 // context capabilities. | 88 // capabilities. |
89 virtual void SetDrawRectangle(const gfx::Rect& rect) = 0; | 89 virtual void SetDrawRectangle(const gfx::Rect& rect) = 0; |
90 | 90 |
91 // Get the class capable of informing cc of hardware overlay capability. | 91 // Get the class capable of informing cc of hardware overlay capability. |
92 virtual OverlayCandidateValidator* GetOverlayCandidateValidator() const = 0; | 92 virtual OverlayCandidateValidator* GetOverlayCandidateValidator() const = 0; |
93 | 93 |
94 // Returns true if a main image overlay plane should be scheduled. | 94 // Returns true if a main image overlay plane should be scheduled. |
95 virtual bool IsDisplayedAsOverlayPlane() const = 0; | 95 virtual bool IsDisplayedAsOverlayPlane() const = 0; |
96 | 96 |
97 // Get the texture for the main image's overlay. | 97 // Get the texture for the main image's overlay. |
98 virtual unsigned GetOverlayTextureId() const = 0; | 98 virtual unsigned GetOverlayTextureId() const = 0; |
(...skipping 25 matching lines...) Expand all Loading... |
124 scoped_refptr<VulkanContextProvider> vulkan_context_provider_; | 124 scoped_refptr<VulkanContextProvider> vulkan_context_provider_; |
125 std::unique_ptr<SoftwareOutputDevice> software_device_; | 125 std::unique_ptr<SoftwareOutputDevice> software_device_; |
126 | 126 |
127 private: | 127 private: |
128 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 128 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
129 }; | 129 }; |
130 | 130 |
131 } // namespace cc | 131 } // namespace cc |
132 | 132 |
133 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ | 133 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ |
OLD | NEW |