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

Unified Diff: cc/tiles/gpu_image_decode_cache.h

Issue 2836703003: Use RefCountedThreadSafe in GPU IDC (Closed)
Patch Set: Created 3 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/gpu_image_decode_cache.h
diff --git a/cc/tiles/gpu_image_decode_cache.h b/cc/tiles/gpu_image_decode_cache.h
index 391f048c2e98da981d4c3f8fe180a4c6efcac9db..5b84182125fd2bcbdf8c7cf4bf5da19fa98eb2c1 100644
--- a/cc/tiles/gpu_image_decode_cache.h
+++ b/cc/tiles/gpu_image_decode_cache.h
@@ -230,7 +230,7 @@ class CC_EXPORT GpuImageDecodeCache
UsageStats usage_stats_;
};
- struct ImageData : public base::RefCounted<ImageData> {
+ struct ImageData : public base::RefCountedThreadSafe<ImageData> {
ImageData(DecodedDataMode mode,
size_t size,
const gfx::ColorSpace& target_color_space,
@@ -250,7 +250,7 @@ class CC_EXPORT GpuImageDecodeCache
UploadedImageData upload;
private:
- friend class base::RefCounted<ImageData>;
+ friend class base::RefCountedThreadSafe<ImageData>;
~ImageData();
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698