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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
85 | 85 |
86 // Get the class capable of informing cc of hardware overlay capability. | 86 // Get the class capable of informing cc of hardware overlay capability. |
87 virtual OverlayCandidateValidator* GetOverlayCandidateValidator() const = 0; | 87 virtual OverlayCandidateValidator* GetOverlayCandidateValidator() const = 0; |
88 | 88 |
89 // Returns true if a main image overlay plane should be scheduled. | 89 // Returns true if a main image overlay plane should be scheduled. |
90 virtual bool IsDisplayedAsOverlayPlane() const = 0; | 90 virtual bool IsDisplayedAsOverlayPlane() const = 0; |
91 | 91 |
92 // Get the texture for the main image's overlay. | 92 // Get the texture for the main image's overlay. |
93 virtual unsigned GetOverlayTextureId() const = 0; | 93 virtual unsigned GetOverlayTextureId() const = 0; |
94 | 94 |
95 // Returns true if the the surface is more than 8 bits per pixel. | |
96 virtual bool IsHighBitDepth() const; | |
enne (OOO)
2017/02/01 23:55:22
Maybe should also be pure virtual like the rest of
danakj
2017/02/02 16:23:09
Yes please.
| |
97 | |
95 // If this returns true, then the surface will not attempt to draw. | 98 // If this returns true, then the surface will not attempt to draw. |
96 virtual bool SurfaceIsSuspendForRecycle() const = 0; | 99 virtual bool SurfaceIsSuspendForRecycle() const = 0; |
97 | 100 |
98 virtual void Reshape(const gfx::Size& size, | 101 virtual void Reshape(const gfx::Size& size, |
99 float device_scale_factor, | 102 float device_scale_factor, |
100 const gfx::ColorSpace& color_space, | 103 const gfx::ColorSpace& color_space, |
101 bool has_alpha, | 104 bool has_alpha, |
102 bool use_stencil) = 0; | 105 bool use_stencil) = 0; |
103 | 106 |
104 virtual bool HasExternalStencilTest() const = 0; | 107 virtual bool HasExternalStencilTest() const = 0; |
(...skipping 14 matching lines...) Expand all Loading... | |
119 scoped_refptr<VulkanContextProvider> vulkan_context_provider_; | 122 scoped_refptr<VulkanContextProvider> vulkan_context_provider_; |
120 std::unique_ptr<SoftwareOutputDevice> software_device_; | 123 std::unique_ptr<SoftwareOutputDevice> software_device_; |
121 | 124 |
122 private: | 125 private: |
123 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 126 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
124 }; | 127 }; |
125 | 128 |
126 } // namespace cc | 129 } // namespace cc |
127 | 130 |
128 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ | 131 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ |
OLD | NEW |