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

Unified Diff: ui/views/linux_ui/linux_ui.h

Issue 1869693002: Theme suppliers: Avoid all Image copying. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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 | « chrome/browser/ui/libgtk2ui/gtk2_ui.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/linux_ui/linux_ui.h
diff --git a/ui/views/linux_ui/linux_ui.h b/ui/views/linux_ui/linux_ui.h
index 6eb3c269ff9377bddb6a4b05e830423f0d5b3dfc..645189eb8c0f176020b1d4948ffa23f365e5bbac 100644
--- a/ui/views/linux_ui/linux_ui.h
+++ b/ui/views/linux_ui/linux_ui.h
@@ -85,7 +85,7 @@ class VIEWS_EXPORT LinuxUI : public ui::LinuxInputMethodContextFactory,
virtual void MaterialDesignControllerReady() = 0;
// Returns a themed image per theme_provider.h
- virtual gfx::Image GetThemeImageNamed(int id) const = 0;
+ virtual const gfx::Image& GetThemeImageNamed(int id) const = 0;
virtual bool GetTint(int id, color_utils::HSL* tint) const = 0;
virtual bool GetColor(int id, SkColor* color) const = 0;
virtual bool HasCustomImage(int id) const = 0;
« no previous file with comments | « chrome/browser/ui/libgtk2ui/gtk2_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698