| 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_RENDERER_CAPABILITIES_IMPL_H_ | 5 #ifndef CC_OUTPUT_RENDERER_CAPABILITIES_IMPL_H_ |
| 6 #define CC_OUTPUT_RENDERER_CAPABILITIES_IMPL_H_ | 6 #define CC_OUTPUT_RENDERER_CAPABILITIES_IMPL_H_ |
| 7 | 7 |
| 8 #include "cc/output/renderer_capabilities.h" | 8 #include "cc/output/renderer_capabilities.h" |
| 9 | 9 |
| 10 namespace cc { | 10 namespace cc { |
| 11 | 11 |
| 12 struct RendererCapabilitiesImpl { | 12 struct RendererCapabilitiesImpl { |
| 13 RendererCapabilitiesImpl(); | 13 RendererCapabilitiesImpl(); |
| 14 ~RendererCapabilitiesImpl(); | 14 ~RendererCapabilitiesImpl(); |
| 15 | 15 |
| 16 // Capabilities copied to main thread. | 16 // Capabilities copied to main thread. |
| 17 ResourceFormat best_texture_format = RGBA_8888; | 17 ResourceFormat best_texture_format = RGBA_8888; |
| 18 int max_texture_size = 0; | 18 int max_texture_size = 0; |
| 19 bool using_shared_memory_resources = false; | |
| 20 | 19 |
| 21 RendererCapabilities MainThreadCapabilities() const; | 20 RendererCapabilities MainThreadCapabilities() const { |
| 21 return RendererCapabilities(best_texture_format, max_texture_size); |
| 22 } |
| 22 }; | 23 }; |
| 23 | 24 |
| 24 } // namespace cc | 25 } // namespace cc |
| 25 | 26 |
| 26 #endif // CC_OUTPUT_RENDERER_CAPABILITIES_IMPL_H_ | 27 #endif // CC_OUTPUT_RENDERER_CAPABILITIES_IMPL_H_ |
| OLD | NEW |