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

Unified Diff: chrome/browser/themes/custom_theme_supplier.cc

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/themes/custom_theme_supplier.h ('k') | chrome/browser/themes/theme_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/themes/custom_theme_supplier.cc
diff --git a/chrome/browser/themes/custom_theme_supplier.cc b/chrome/browser/themes/custom_theme_supplier.cc
index 657f218341f5e91c0059c69b3e99d78a1c8852cc..5c71159be31d56ce86758ae84d6ee2584195a327 100644
--- a/chrome/browser/themes/custom_theme_supplier.cc
+++ b/chrome/browser/themes/custom_theme_supplier.cc
@@ -6,7 +6,6 @@
#include "base/memory/ref_counted_memory.h"
#include "ui/gfx/color_utils.h"
-#include "ui/gfx/image/image.h"
CustomThemeSupplier::CustomThemeSupplier(ThemeType theme_type)
: theme_type_(theme_type) {}
@@ -29,8 +28,8 @@ bool CustomThemeSupplier::GetDisplayProperty(int id, int* result) const {
return false;
}
-gfx::Image CustomThemeSupplier::GetImageNamed(int id) {
- return gfx::Image();
+const gfx::Image& CustomThemeSupplier::GetImageNamed(int id) {
+ return empty_image();
}
base::RefCountedMemory* CustomThemeSupplier::GetRawData(
« no previous file with comments | « chrome/browser/themes/custom_theme_supplier.h ('k') | chrome/browser/themes/theme_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698