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

Unified Diff: ui/gfx/canvas.cc

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 | « ui/gfx/canvas.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/canvas.cc
diff --git a/ui/gfx/canvas.cc b/ui/gfx/canvas.cc
index 60f0077bf96087faf204441fb6148644cb6b3b6c..7e5a2ed40f382f41902c12c64904f575ae0e9eec 100644
--- a/ui/gfx/canvas.cc
+++ b/ui/gfx/canvas.cc
@@ -198,6 +198,10 @@ void Canvas::SaveLayerAlpha(uint8_t alpha, const Rect& layer_bounds) {
canvas_->saveLayerAlpha(&bounds, alpha);
}
+void Canvas::SaveLayerWithFlags(const cc::PaintFlags& flags) {
+ canvas_->saveLayer(nullptr /* bounds */, &flags);
+}
+
void Canvas::Restore() {
canvas_->restore();
}
« no previous file with comments | « ui/gfx/canvas.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698