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

Unified Diff: ui/compositor/compositing_recorder.h

Issue 1062293003: tabstrip: Use a PaintRecorder to access the Canvas for painting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tabstrip-recorder: . Created 5 years, 8 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: ui/compositor/compositing_recorder.h
diff --git a/ui/compositor/compositing_recorder.h b/ui/compositor/compositing_recorder.h
index cd8bcd7a88f39b970e2527410f724890300d584a..1cea558229e762a22ff3828e9ac963f827fa02d4 100644
--- a/ui/compositor/compositing_recorder.h
+++ b/ui/compositor/compositing_recorder.h
@@ -22,11 +22,14 @@ class PaintContext;
// be filtered by the effect.
class COMPOSITOR_EXPORT CompositingRecorder {
public:
- CompositingRecorder(const PaintContext& context, float opacity);
+ // |alpha| is a value between 0 and 255, where 0 is transparent and 255 is
+ // opaque.
+ CompositingRecorder(const PaintContext& context, int alpha);
~CompositingRecorder();
private:
gfx::Canvas* canvas_;
+ bool saved_;
DISALLOW_COPY_AND_ASSIGN(CompositingRecorder);
};

Powered by Google App Engine
This is Rietveld 408576698