Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Unified Diff: cc/output/context_provider.h

Issue 87903002: Modified the structure ContextProvider::Capabilities to use bitfields. (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/context_provider.h
===================================================================
--- cc/output/context_provider.h (revision 237046)
+++ cc/output/context_provider.h (working copy)
@@ -29,22 +29,22 @@
virtual class GrContext* GrContext() = 0;
struct Capabilities {
- bool discard_backbuffer;
- bool egl_image_external;
- bool fast_npot_mo8_textures;
- bool iosurface;
- bool map_image;
- bool map_sub;
- bool post_sub_buffer;
- bool set_visibility;
- bool shallow_flush;
- bool swapbuffers_complete_callback;
- bool texture_format_bgra8888;
- bool texture_format_etc1;
- bool texture_rectangle;
- bool texture_storage;
- bool texture_usage;
- bool discard_framebuffer;
+ bool discard_backbuffer : 1;
+ bool egl_image_external : 1;
+ bool fast_npot_mo8_textures : 1;
+ bool iosurface : 1;
+ bool map_image : 1;
+ bool map_sub : 1;
+ bool post_sub_buffer : 1;
+ bool set_visibility : 1;
+ bool shallow_flush : 1;
+ bool swapbuffers_complete_callback : 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;
size_t max_transfer_buffer_usage_bytes;
CC_EXPORT Capabilities();
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698