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

Unified Diff: chrome/browser/ui/gtk/cairo_cached_surface.h

Issue 8392011: GTK: Step 1 of tab strip refresh. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to ToT again. Created 9 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: chrome/browser/ui/gtk/cairo_cached_surface.h
diff --git a/chrome/browser/ui/gtk/cairo_cached_surface.h b/chrome/browser/ui/gtk/cairo_cached_surface.h
index 8894ee1a372a5c46497e7cb5c136591b3b5715b5..eb481e84cde2d3bbdcba797df23b2de091facb3f 100644
--- a/chrome/browser/ui/gtk/cairo_cached_surface.h
+++ b/chrome/browser/ui/gtk/cairo_cached_surface.h
@@ -30,6 +30,9 @@ class CairoCachedSurface {
return pixbuf_;
}
+ // Delete all our data.
+ void Reset();
+
// The dimensions of the underlying pixbuf/surface. (or -1 if invalid.)
int Width() const;
int Height() const;
@@ -44,11 +47,18 @@ class CairoCachedSurface {
// case we don't have an X backed surface cached.
void SetSource(cairo_t* cr, int x, int y);
+ // Performs a mask operation, using this surface as the alpha channel.
+ void MaskSource(cairo_t* cr, int x, int y);
+
// Raw access to the pixbuf. May be NULL. Used for a few gdk operations
// regarding window shaping.
GdkPixbuf* pixbuf() { return pixbuf_; }
private:
+ // Makes sure |surface_| is a valid thing that lives on the X server,
+ // uploading it if necessary.
+ void EnsureSurfaceValid(cairo_t* cr);
+
// The source pixbuf.
GdkPixbuf* pixbuf_;
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/cairo_cached_surface.cc » ('j') | chrome/browser/ui/gtk/tabs/dragged_view_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698