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

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: missing8 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
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | ui/compositor/compositing_recorder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositing_recorder.h
diff --git a/ui/compositor/compositing_recorder.h b/ui/compositor/compositing_recorder.h
index cd8bcd7a88f39b970e2527410f724890300d584a..704cde9510b43718a6100dec7d5045d185f429cf 100644
--- a/ui/compositor/compositing_recorder.h
+++ b/ui/compositor/compositing_recorder.h
@@ -5,6 +5,7 @@
#ifndef UI_COMPOSITOR_COMPOSITING_RECORDER_H_
#define UI_COMPOSITOR_COMPOSITING_RECORDER_H_
+#include "base/basictypes.h"
#include "base/macros.h"
#include "ui/compositor/compositor_export.h"
@@ -22,11 +23,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, uint8_t alpha);
~CompositingRecorder();
private:
gfx::Canvas* canvas_;
+ bool saved_;
DISALLOW_COPY_AND_ASSIGN(CompositingRecorder);
};
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | ui/compositor/compositing_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698