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

Unified Diff: views/widget/default_theme_provider.h

Issue 288005: First fix to minimize copying of image data. (Closed)
Patch Set: Modify gyp Created 11 years, 2 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
Index: views/widget/default_theme_provider.h
diff --git a/views/widget/default_theme_provider.h b/views/widget/default_theme_provider.h
index 512b512b305ab32fa7ad58c4d6529a9ac75d1708..962427f247f367067a51ed6787bba788f9d8a262 100644
--- a/views/widget/default_theme_provider.h
+++ b/views/widget/default_theme_provider.h
@@ -30,9 +30,7 @@ class DefaultThemeProvider : public ThemeProvider {
virtual bool GetDisplayProperty(int id, int* result) const { return false; }
virtual bool ShouldUseNativeFrame() const;
virtual bool HasCustomImage(int id) const { return false; }
- virtual bool GetRawData(int id, std::vector<unsigned char>* raw_data) const {
- return false;
- }
+ virtual RefCountedMemory* GetRawData(int id) const { return NULL; }
private:
DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider);
« chrome/browser/browser_theme_provider.cc ('K') | « chrome/common/ref_counted_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698