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

Unified Diff: ui/gfx/image/image_family.h

Issue 1771033003: gfx::Image: Added thread checker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove UpdateShortcutWorker changes; instead just disable thread checking. Created 3 years, 5 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 | « ui/gfx/image/image.cc ('k') | ui/gfx/image/image_family.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image_family.h
diff --git a/ui/gfx/image/image_family.h b/ui/gfx/image/image_family.h
index e8920b9a88f44bc8530191e4a6dbbbee0da99c27..8fc5f2153c0cedb9ca630eb21d29e4e81ec45abf 100644
--- a/ui/gfx/image/image_family.h
+++ b/ui/gfx/image/image_family.h
@@ -147,6 +147,12 @@ class GFX_EXPORT ImageFamily {
// desired size. If there are no images in the family, returns an empty image.
gfx::Image CreateExact(const gfx::Size& size) const;
+ // Calls DisableThreadChecking() on all images.
+ void DisableThreadChecking();
+
+ // Calls DetachFromThread() on all images.
+ void DetachFromThread();
+
private:
// Find the closest aspect ratio in the map to |desired_aspect|.
// Ties are broken by the thinner aspect.
« no previous file with comments | « ui/gfx/image/image.cc ('k') | ui/gfx/image/image_family.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698