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

Side by Side Diff: ui/gfx/image.cc

Issue 6541031: Integrate gfx::Image into the ResourceBundle. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« ui/gfx/image.h ('K') | « ui/gfx/image.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/gfx/image.h" 5 #include "ui/gfx/image.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "third_party/skia/include/core/SkBitmap.h"
8 9
9 #if defined(OS_LINUX) 10 #if defined(OS_LINUX)
10 #include <gdk-pixbuf/gdk-pixbuf.h> 11 #include <gdk-pixbuf/gdk-pixbuf.h>
11 #include <glib-object.h> 12 #include <glib-object.h>
12 #include "ui/gfx/canvas_skia.h" 13 #include "ui/gfx/canvas_skia.h"
13 #include "ui/gfx/gtk_util.h" 14 #include "ui/gfx/gtk_util.h"
14 #elif defined(OS_MACOSX) 15 #elif defined(OS_MACOSX)
15 #include "base/mac/mac_util.h" 16 #include "base/mac/mac_util.h"
16 #include "skia/ext/skia_utils_mac.h" 17 #include "skia/ext/skia_utils_mac.h"
17 #endif 18 #endif
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 271
271 // Something went seriously wrong... 272 // Something went seriously wrong...
272 return NULL; 273 return NULL;
273 } 274 }
274 275
275 void Image::AddRepresentation(internal::ImageRep* rep) { 276 void Image::AddRepresentation(internal::ImageRep* rep) {
276 representations_.insert(std::make_pair(rep->type(), rep)); 277 representations_.insert(std::make_pair(rep->type(), rep));
277 } 278 }
278 279
279 } // namespace gfx 280 } // namespace gfx
OLDNEW
« ui/gfx/image.h ('K') | « ui/gfx/image.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698