| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_CONTEXT_PROVIDER_H_ | 5 #ifndef CC_OUTPUT_CONTEXT_PROVIDER_H_ |
| 6 #define CC_OUTPUT_CONTEXT_PROVIDER_H_ | 6 #define CC_OUTPUT_CONTEXT_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 bool egl_image_external; | 34 bool egl_image_external; |
| 35 bool fast_npot_mo8_textures; | 35 bool fast_npot_mo8_textures; |
| 36 bool iosurface; | 36 bool iosurface; |
| 37 bool map_image; | 37 bool map_image; |
| 38 bool map_sub; | 38 bool map_sub; |
| 39 bool post_sub_buffer; | 39 bool post_sub_buffer; |
| 40 bool set_visibility; | 40 bool set_visibility; |
| 41 bool shallow_flush; | 41 bool shallow_flush; |
| 42 bool swapbuffers_complete_callback; | 42 bool swapbuffers_complete_callback; |
| 43 bool texture_format_bgra8888; | 43 bool texture_format_bgra8888; |
| 44 bool texture_format_etc1; |
| 44 bool texture_rectangle; | 45 bool texture_rectangle; |
| 45 bool texture_storage; | 46 bool texture_storage; |
| 46 bool texture_usage; | 47 bool texture_usage; |
| 47 bool discard_framebuffer; | 48 bool discard_framebuffer; |
| 48 size_t max_transfer_buffer_usage_bytes; | 49 size_t max_transfer_buffer_usage_bytes; |
| 49 | 50 |
| 50 CC_EXPORT Capabilities(); | 51 CC_EXPORT Capabilities(); |
| 51 }; | 52 }; |
| 52 // Returns the capabilities of the currently bound 3d context. | 53 // Returns the capabilities of the currently bound 3d context. |
| 53 virtual Capabilities ContextCapabilities() = 0; | 54 virtual Capabilities ContextCapabilities() = 0; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 84 const MemoryPolicyChangedCallback& memory_policy_changed_callback) = 0; | 85 const MemoryPolicyChangedCallback& memory_policy_changed_callback) = 0; |
| 85 | 86 |
| 86 protected: | 87 protected: |
| 87 friend class base::RefCountedThreadSafe<ContextProvider>; | 88 friend class base::RefCountedThreadSafe<ContextProvider>; |
| 88 virtual ~ContextProvider() {} | 89 virtual ~ContextProvider() {} |
| 89 }; | 90 }; |
| 90 | 91 |
| 91 } // namespace cc | 92 } // namespace cc |
| 92 | 93 |
| 93 #endif // CC_OUTPUT_CONTEXT_PROVIDER_H_ | 94 #endif // CC_OUTPUT_CONTEXT_PROVIDER_H_ |
| OLD | NEW |