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

Unified Diff: ui/gfx/canvas.h

Issue 2770943002: Remove ExtractImageRep from the browser frame header painting code. (Closed)
Patch Set: header-bitmap: headers Created 3 years, 9 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 | « chrome/browser/ui/views/frame/browser_header_painter_ash.cc ('k') | ui/gfx/canvas.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas.h
diff --git a/ui/gfx/canvas.h b/ui/gfx/canvas.h
index 4fcb4bcfbdfe563610198d12239de0f6e12ec6e4..d4ff14e2f18c80a058e6da9067420b47b58d5cc3 100644
--- a/ui/gfx/canvas.h
+++ b/ui/gfx/canvas.h
@@ -192,6 +192,10 @@ class GFX_EXPORT Canvas {
void SaveLayerAlpha(uint8_t alpha);
void SaveLayerAlpha(uint8_t alpha, const Rect& layer_bounds);
+ // Like SaveLayerAlpha but draws the layer with an arbitrary set of
+ // PaintFlags once Restore() is called.
+ void SaveLayerWithFlags(const cc::PaintFlags& flags);
+
// Restores the drawing state after a call to Save*(). It is an error to
// call Restore() more times than Save*().
void Restore();
« no previous file with comments | « chrome/browser/ui/views/frame/browser_header_painter_ash.cc ('k') | ui/gfx/canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698