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

Unified Diff: chrome/browser/gtk/tabs/dragged_tab_gtk.h

Issue 155321: Improve performance of dragged tab renderering.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 | « no previous file | chrome/browser/gtk/tabs/dragged_tab_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/tabs/dragged_tab_gtk.h
===================================================================
--- chrome/browser/gtk/tabs/dragged_tab_gtk.h (revision 20318)
+++ chrome/browser/gtk/tabs/dragged_tab_gtk.h (working copy)
@@ -86,19 +86,12 @@
// Sets the shape mask for the container window to emulate a transparent
// container window. This is used if compositing is not available for the
// screen.
- void SetContainerShapeMask(const SkBitmap& dragged_contents);
+ // |pixbuf| is the pixbuf for the tab only (not the render view).
+ void SetContainerShapeMask(GdkPixbuf* pixbuf);
- // Paints the tab when it's attached to a tabstrip.
- SkBitmap PaintAttachedTab();
+ // Paints the tab. The returned pixbuf belongs to the caller.
+ GdkPixbuf* PaintTab();
- // Paints the tab when it's not attached to any tabstrip.
- SkBitmap PaintDetachedView();
-
- // Paints a screenshot of the dragged contents from the backing store into
- // |canvas|.
- void PaintScreenshotIntoCanvas(gfx::Canvas* canvas,
- const gfx::Rect& target_bounds);
-
// expose-event handler that notifies when the tab needs to be redrawn.
static gboolean OnExposeEvent(GtkWidget* widget, GdkEventExpose* event,
DraggedTabGtk* dragged_tab);
« no previous file with comments | « no previous file | chrome/browser/gtk/tabs/dragged_tab_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698