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

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

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_family.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image_family.cc
diff --git a/ui/gfx/image/image_family.cc b/ui/gfx/image/image_family.cc
index b9d28bddd9df387e8b7fbc99544379de6b95e79a..52ea315f5587cf92c56ed7282513822e7b19f741 100644
--- a/ui/gfx/image/image_family.cc
+++ b/ui/gfx/image/image_family.cc
@@ -136,6 +136,16 @@ gfx::Image ImageFamily::CreateExact(const gfx::Size& size) const {
return CreateExact(size.width(), size.height());
}
+void ImageFamily::DisableThreadChecking() {
+ for (auto& item : map_)
+ item.second.DisableThreadChecking();
+}
+
+void ImageFamily::DetachFromThread() {
+ for (auto& item : map_)
+ item.second.DetachFromThread();
+}
+
const gfx::Image* ImageFamily::GetWithExactAspect(float aspect,
int width) const {
// Find the two images of given aspect ratio on either side of |width|.
« no previous file with comments | « ui/gfx/image/image_family.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698