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

Unified Diff: cc/resources/resource_provider.h

Issue 207943002: cc: Reduce size of cc::ResourceProvider::Resource class (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 9 months 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 | « no previous file | cc/resources/resource_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/resource_provider.h
diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h
index 73b5a23dcdf3c249f075946ce7a0c6deb77ac0d6..6c952aeece80cb43dbefa9736986b966d5d94dc6 100644
--- a/cc/resources/resource_provider.h
+++ b/cc/resources/resource_provider.h
@@ -412,32 +412,32 @@ class CC_EXPORT ResourceProvider {
ReleaseCallback release_callback;
uint8_t* pixels;
uint8_t* pixel_buffer;
- int lock_for_read_count;
- int imported_count;
- int exported_count;
- bool locked_for_write;
- Origin origin;
- bool marked_for_deletion;
- bool pending_set_pixels;
- bool set_pixels_completion_forced;
- bool allocated;
- bool enable_read_lock_fences;
+ uint16 lock_for_read_count;
danakj 2014/03/21 16:04:22 style guide says to use signed int except for thin
jadahl 2014/03/21 16:54:51 I suppose a 16 bit signed int should be enough as
+ uint16 imported_count;
+ uint16 exported_count;
+ unsigned image_id;
+ unsigned bound_image_id;
+ bool dirty_image : 1;
danakj 2014/03/21 16:04:22 Do you have any data to show this affects our perf
jadahl 2014/03/21 16:54:51 No, I have not done any measurements; do you reall
danakj 2014/03/21 18:04:01 No, they're not placed in any specific order. I do
jadahl 2014/03/24 09:54:27 The data I have is that I measured the maximum num
+ bool locked_for_write : 1;
+ bool lost : 1;
+ bool marked_for_deletion : 1;
+ bool pending_set_pixels : 1;
+ bool set_pixels_completion_forced : 1;
+ bool allocated : 1;
+ bool enable_read_lock_fences : 1;
+ bool has_shared_bitmap_id : 1;
scoped_refptr<Fence> read_lock_fence;
gfx::Size size;
+ Origin origin;
GLenum target;
// TODO(skyostil): Use a separate sampler object for filter state.
GLenum original_filter;
GLenum filter;
- unsigned image_id;
- unsigned bound_image_id;
- bool dirty_image;
GLenum texture_pool;
GLint wrap_mode;
- bool lost;
TextureUsageHint hint;
ResourceType type;
ResourceFormat format;
- bool has_shared_bitmap_id;
SharedBitmapId shared_bitmap_id;
SharedBitmap* shared_bitmap;
linked_ptr<DirectRasterBuffer> direct_raster_buffer;
« no previous file with comments | « no previous file | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698