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

Unified Diff: cc/resources/resource_provider.h

Issue 23023005: cc: refcount resources as we send them to the parent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
Index: cc/resources/resource_provider.h
diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h
index b5dccc8f046a71c6a2a33906d745d37727b05ca6..9484cea0b6752572f73c57d70386eb2750090c85 100644
--- a/cc/resources/resource_provider.h
+++ b/cc/resources/resource_provider.h
@@ -354,9 +354,10 @@ class CC_EXPORT ResourceProvider {
uint8_t* pixels;
uint8_t* pixel_buffer;
int lock_for_read_count;
+ unsigned imported_count;
danakj 2013/08/15 21:30:53 use int here. http://google-styleguide.googlecode
piman 2013/08/16 04:29:55 Disagree, but done.
+ unsigned exported_count;
bool locked_for_write;
bool external;
- bool exported;
bool marked_for_deletion;
bool pending_set_pixels;
bool set_pixels_completion_forced;
@@ -399,7 +400,7 @@ class CC_EXPORT ResourceProvider {
static void PopulateSkBitmapWithResource(SkBitmap* sk_bitmap,
const Resource* resource);
- bool TransferResource(WebKit::WebGraphicsContext3D* context,
+ void TransferResource(WebKit::WebGraphicsContext3D* context,
ResourceId id,
TransferableResource* resource);
enum DeleteStyle {

Powered by Google App Engine
This is Rietveld 408576698