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

Unified Diff: cc/layers/layer.h

Issue 1999783003: cc : Initialize solid color scrollbar layer on main thread to 0. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | cc/layers/scrollbar_layer_unittest.cc » ('j') | cc/layers/solid_color_scrollbar_layer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 47ed62243490f4d44b56b6e833b172c0273c3ea4..78cf2fa10ba10ee13a9689ba35682302b8d6f62e 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -128,7 +128,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
virtual void SetNeedsDisplayRect(const gfx::Rect& dirty_rect);
void SetNeedsDisplay() { SetNeedsDisplayRect(gfx::Rect(bounds())); }
- void SetOpacity(float opacity);
+ virtual void SetOpacity(float opacity);
float opacity() const { return opacity_; }
float EffectiveOpacity() const;
bool OpacityIsAnimating() const;
« no previous file with comments | « no previous file | cc/layers/scrollbar_layer_unittest.cc » ('j') | cc/layers/solid_color_scrollbar_layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698