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

Unified Diff: chrome/browser/android/compositor/layer/content_layer.h

Issue 1083203002: Stop incorrectly caching brightness values (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Retain FilterOperations to reduce frequency of allocations. 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 | « no previous file | chrome/browser/android/compositor/layer/content_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/compositor/layer/content_layer.h
diff --git a/chrome/browser/android/compositor/layer/content_layer.h b/chrome/browser/android/compositor/layer/content_layer.h
index 33003c32debc59a19f7269dfbac05c80e58a5a4b..54f0eec303a0c70d0ff8e805394efb4eb3e902d6 100644
--- a/chrome/browser/android/compositor/layer/content_layer.h
+++ b/chrome/browser/android/compositor/layer/content_layer.h
@@ -7,6 +7,7 @@
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
+#include "cc/output/filter_operations.h"
#include "chrome/browser/android/compositor/layer/layer.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
@@ -61,8 +62,9 @@ class ContentLayer : public Layer {
scoped_refptr<ThumbnailLayer> static_layer_;
bool content_attached_;
bool static_attached_;
- float saturation_;
- float brightness_;
+
+ cc::FilterOperations static_filter_operations_;
+ cc::FilterOperations content_filter_operations_;
TabContentManager* tab_content_manager_;
« no previous file with comments | « no previous file | chrome/browser/android/compositor/layer/content_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698