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

Unified Diff: chrome/browser/views/tabs/base_tab.cc

Issue 2825018: Canvas refactoring part 3.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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: chrome/browser/views/tabs/base_tab.cc
===================================================================
--- chrome/browser/views/tabs/base_tab.cc (revision 50661)
+++ chrome/browser/views/tabs/base_tab.cc (working copy)
@@ -17,7 +17,7 @@
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/views/tabs/tab_controller.h"
#include "chrome/common/chrome_switches.h"
-#include "gfx/canvas.h"
+#include "gfx/canvas_skia.h"
#include "gfx/favicon_size.h"
#include "gfx/font.h"
#include "gfx/skbitmap_operations.h"
@@ -437,7 +437,7 @@
image_size, favicon_x, dst_y, image_size, image_size,
false);
} else {
- canvas->save();
+ canvas->AsCanvasSkia()->save();
canvas->ClipRectInt(0, 0, width(), height());
if (should_display_crashed_favicon_) {
canvas->DrawBitmapInt(*crashed_fav_icon, 0, 0,
@@ -460,7 +460,7 @@
true);
}
}
- canvas->restore();
+ canvas->AsCanvasSkia()->restore();
}
}

Powered by Google App Engine
This is Rietveld 408576698