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

Unified Diff: chrome/browser/android/compositor/layer/tab_handle_layer.cc

Issue 1783613004: CC Animation: Erase cc::LayerSettings everywhere. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@eraseandroid
Patch Set: Rebase. Created 4 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
Index: chrome/browser/android/compositor/layer/tab_handle_layer.cc
diff --git a/chrome/browser/android/compositor/layer/tab_handle_layer.cc b/chrome/browser/android/compositor/layer/tab_handle_layer.cc
index ebe10b2e74be6515c022202a7daa79294e388c7c..5e479c761caf9ff2b7eabaaab6fcec007eb27c4d 100644
--- a/chrome/browser/android/compositor/layer/tab_handle_layer.cc
+++ b/chrome/browser/android/compositor/layer/tab_handle_layer.cc
@@ -6,7 +6,6 @@
#include "base/i18n/rtl.h"
#include "cc/layers/layer.h"
-#include "cc/layers/layer_settings.h"
#include "cc/layers/solid_color_layer.h"
#include "cc/resources/scoped_ui_resource.h"
#include "chrome/browser/android/compositor/decoration_title.h"
@@ -179,13 +178,10 @@ scoped_refptr<cc::Layer> TabHandleLayer::layer() {
TabHandleLayer::TabHandleLayer(LayerTitleCache* layer_title_cache)
: layer_title_cache_(layer_title_cache),
- layer_(cc::Layer::Create(cc::LayerSettings())),
- close_button_(
- cc::UIResourceLayer::Create(cc::LayerSettings())),
- decoration_tab_(
- cc::NinePatchLayer::Create(cc::LayerSettings())),
- border_(
- cc::SolidColorLayer::Create(cc::LayerSettings())),
+ layer_(cc::Layer::Create()),
+ close_button_(cc::UIResourceLayer::Create()),
+ decoration_tab_(cc::NinePatchLayer::Create()),
+ border_(cc::SolidColorLayer::Create()),
brightness_(1.0f),
foreground_(false) {
decoration_tab_->SetIsDrawable(true);
« no previous file with comments | « chrome/browser/android/compositor/layer/overlay_panel_layer.cc ('k') | chrome/browser/android/compositor/layer/tab_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698