Remove BackingStoreGtk::CairoShowRect().
This method is not called anywhere since r112787, so remove the dead code.
BUG=
Review URL: https://chromiumcodereview.appspot.com/16958009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206711 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/renderer_host/backing_store_gtk.cc b/content/browser/renderer_host/backing_store_gtk.cc
index 595c481b..a029fba 100644
--- a/content/browser/renderer_host/backing_store_gtk.cc
+++ b/content/browser/renderer_host/backing_store_gtk.cc
@@ -664,20 +664,6 @@
rect.x() + origin.x(), rect.y() + origin.y());
}
-void BackingStoreGtk::CairoShowRect(const gfx::Rect& rect,
- GdkDrawable* drawable) {
- cairo_surface_t* surface = cairo_xlib_surface_create(
- display_, pixmap_, static_cast<Visual*>(visual_),
- size().width(), size().height());
- cairo_t* cr = gdk_cairo_create(drawable);
- cairo_set_source_surface(cr, surface, 0, 0);
-
- cairo_rectangle(cr, rect.x(), rect.y(), rect.width(), rect.height());
- cairo_fill(cr);
- cairo_destroy(cr);
- cairo_surface_destroy(surface);
-}
-
#if defined(TOOLKIT_GTK)
void BackingStoreGtk::PaintToRect(const gfx::Rect& rect, GdkDrawable* target) {
cairo_surface_t* surface = cairo_xlib_surface_create(
diff --git a/content/browser/renderer_host/backing_store_gtk.h b/content/browser/renderer_host/backing_store_gtk.h
index 878c28d..0e81597 100644
--- a/content/browser/renderer_host/backing_store_gtk.h
+++ b/content/browser/renderer_host/backing_store_gtk.h
@@ -49,9 +49,6 @@
void XShowRect(const gfx::Point &origin, const gfx::Rect& damage,
XID target);
- // As above, but use Cairo instead of Xlib.
- void CairoShowRect(const gfx::Rect& damage, GdkDrawable* drawable);
-
#if defined(TOOLKIT_GTK)
// Paint the backing store into the target's |dest_rect|.
void PaintToRect(const gfx::Rect& dest_rect, GdkDrawable* target);