| 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 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
| 14 #include "cc/base/cc_export.h" | 14 #include "cc/base/cc_export.h" |
| 15 #include "cc/output/context_provider.h" | 15 #include "cc/output/context_provider.h" |
| 16 #include "cc/output/overlay_candidate_validator.h" | 16 #include "cc/output/overlay_candidate_validator.h" |
| 17 #include "cc/output/software_output_device.h" | 17 #include "cc/output/software_output_device.h" |
| 18 #include "cc/output/vulkan_context_provider.h" | 18 #include "cc/output/vulkan_context_provider.h" |
| 19 #include "cc/resources/returned_resource.h" | 19 #include "cc/resources/returned_resource.h" |
| 20 #include "gpu/command_buffer/common/texture_in_use_response.h" | 20 #include "gpu/command_buffer/common/texture_in_use_response.h" |
| 21 #include "ui/gfx/color_space.h" | 21 #include "ui/gfx/color_space.h" |
| 22 | 22 |
| 23 namespace ui { | |
| 24 class LatencyInfo; | |
| 25 } | |
| 26 | |
| 27 namespace gfx { | 23 namespace gfx { |
| 28 class ColorSpace; | 24 class ColorSpace; |
| 29 class Rect; | |
| 30 class Size; | 25 class Size; |
| 31 class Transform; | |
| 32 } | 26 } |
| 33 | 27 |
| 34 namespace cc { | 28 namespace cc { |
| 35 | 29 |
| 36 struct ManagedMemoryPolicy; | |
| 37 class OutputSurfaceClient; | 30 class OutputSurfaceClient; |
| 38 class OutputSurfaceFrame; | 31 class OutputSurfaceFrame; |
| 39 | 32 |
| 40 // This class represents a platform-independent API for presenting | 33 // This class represents a platform-independent API for presenting |
| 41 // buffers to display via GPU or software compositing. Implementations | 34 // buffers to display via GPU or software compositing. Implementations |
| 42 // can provide platform-specific behaviour. | 35 // can provide platform-specific behaviour. |
| 43 class CC_EXPORT OutputSurface { | 36 class CC_EXPORT OutputSurface { |
| 44 public: | 37 public: |
| 45 struct Capabilities { | 38 struct Capabilities { |
| 46 Capabilities() = default; | 39 Capabilities() = default; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 scoped_refptr<VulkanContextProvider> vulkan_context_provider_; | 114 scoped_refptr<VulkanContextProvider> vulkan_context_provider_; |
| 122 std::unique_ptr<SoftwareOutputDevice> software_device_; | 115 std::unique_ptr<SoftwareOutputDevice> software_device_; |
| 123 | 116 |
| 124 private: | 117 private: |
| 125 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 118 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
| 126 }; | 119 }; |
| 127 | 120 |
| 128 } // namespace cc | 121 } // namespace cc |
| 129 | 122 |
| 130 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ | 123 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ |
| OLD | NEW |