diff options
Diffstat (limited to 'cc/output/context_provider.h')
-rw-r--r-- | cc/output/context_provider.h | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/cc/output/context_provider.h b/cc/output/context_provider.h index 0b6d482..7f1737a 100644 --- a/cc/output/context_provider.h +++ b/cc/output/context_provider.h @@ -36,25 +36,12 @@ class ContextProvider : public base::RefCountedThreadSafe<ContextProvider> { virtual void MakeGrContextCurrent() = 0; struct Capabilities { - bool egl_image_external : 1; - bool fast_npot_mo8_textures : 1; - bool iosurface : 1; - bool map_image : 1; - bool post_sub_buffer : 1; - bool texture_format_bgra8888 : 1; - bool texture_format_etc1 : 1; - bool texture_rectangle : 1; - bool texture_storage : 1; - bool texture_usage : 1; - bool discard_framebuffer : 1; + gpu::Capabilities gpu; size_t max_transfer_buffer_usage_bytes; CC_EXPORT Capabilities(); - - // TODO(boliu): Compose a gpu::Capabilities instead and remove this - // constructor. - explicit CC_EXPORT Capabilities(const gpu::Capabilities& gpu_capabilities); }; + // Returns the capabilities of the currently bound 3d context. virtual Capabilities ContextCapabilities() = 0; |