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

Unified Diff: chrome/browser/android/compositor/layer/tab_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_layer.cc
diff --git a/chrome/browser/android/compositor/layer/tab_layer.cc b/chrome/browser/android/compositor/layer/tab_layer.cc
index a33e085aba18e0d547ef1dbf98b0d512a42753b1..dcdc3d8dcb1e30a1a7f4a7f974969d1ec5128925 100644
--- a/chrome/browser/android/compositor/layer/tab_layer.cc
+++ b/chrome/browser/android/compositor/layer/tab_layer.cc
@@ -7,7 +7,6 @@
#include "base/i18n/rtl.h"
#include "cc/layers/layer.h"
#include "cc/layers/layer_lists.h"
-#include "cc/layers/layer_settings.h"
#include "cc/layers/nine_patch_layer.h"
#include "cc/layers/solid_color_layer.h"
#include "cc/layers/ui_resource_layer.h"
@@ -586,23 +585,17 @@ TabLayer::TabLayer(bool incognito,
: incognito_(incognito),
resource_manager_(resource_manager),
layer_title_cache_(layer_title_cache),
- layer_(cc::Layer::Create(cc::LayerSettings())),
+ layer_(cc::Layer::Create()),
toolbar_layer_(ToolbarLayer::Create(resource_manager)),
- title_(cc::Layer::Create(cc::LayerSettings())),
+ title_(cc::Layer::Create()),
content_(ContentLayer::Create(tab_content_manager)),
- padding_(
- cc::SolidColorLayer::Create(cc::LayerSettings())),
- close_button_(
- cc::UIResourceLayer::Create(cc::LayerSettings())),
- front_border_(
- cc::NinePatchLayer::Create(cc::LayerSettings())),
- front_border_inner_shadow_(
- cc::NinePatchLayer::Create(cc::LayerSettings())),
- contour_shadow_(
- cc::NinePatchLayer::Create(cc::LayerSettings())),
- shadow_(cc::NinePatchLayer::Create(cc::LayerSettings())),
- back_logo_(
- cc::UIResourceLayer::Create(cc::LayerSettings())),
+ padding_(cc::SolidColorLayer::Create()),
+ close_button_(cc::UIResourceLayer::Create()),
+ front_border_(cc::NinePatchLayer::Create()),
+ front_border_inner_shadow_(cc::NinePatchLayer::Create()),
+ contour_shadow_(cc::NinePatchLayer::Create()),
+ shadow_(cc::NinePatchLayer::Create()),
+ back_logo_(cc::UIResourceLayer::Create()),
brightness_(1.f) {
layer_->AddChild(shadow_);
layer_->AddChild(contour_shadow_);

Powered by Google App Engine
This is Rietveld 408576698