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

Unified Diff: chrome/browser/android/compositor/layer/toolbar_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/toolbar_layer.cc
diff --git a/chrome/browser/android/compositor/layer/toolbar_layer.cc b/chrome/browser/android/compositor/layer/toolbar_layer.cc
index 692d6b01753f8b0793ac8b0ca56089fc749ecab6..e90b052a9b48e9e2a31107e41f8fc8c1ca43f116 100644
--- a/chrome/browser/android/compositor/layer/toolbar_layer.cc
+++ b/chrome/browser/android/compositor/layer/toolbar_layer.cc
@@ -4,7 +4,6 @@
#include "chrome/browser/android/compositor/layer/toolbar_layer.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"
@@ -150,21 +149,14 @@ void ToolbarLayer::UpdateProgressBar(int progress_bar_x,
ToolbarLayer::ToolbarLayer(ui::ResourceManager* resource_manager)
: resource_manager_(resource_manager),
- layer_(cc::Layer::Create(cc::LayerSettings())),
- toolbar_background_layer_(
- cc::SolidColorLayer::Create(cc::LayerSettings())),
- url_bar_background_layer_(
- cc::NinePatchLayer::Create(cc::LayerSettings())),
- bitmap_layer_(
- cc::UIResourceLayer::Create(cc::LayerSettings())),
- progress_bar_layer_(
- cc::SolidColorLayer::Create(cc::LayerSettings())),
- progress_bar_background_layer_(
- cc::SolidColorLayer::Create(cc::LayerSettings())),
- anonymize_layer_(
- cc::SolidColorLayer::Create(cc::LayerSettings())),
- debug_layer_(
- cc::SolidColorLayer::Create(cc::LayerSettings())),
+ layer_(cc::Layer::Create()),
+ toolbar_background_layer_(cc::SolidColorLayer::Create()),
+ url_bar_background_layer_(cc::NinePatchLayer::Create()),
+ bitmap_layer_(cc::UIResourceLayer::Create()),
+ progress_bar_layer_(cc::SolidColorLayer::Create()),
+ progress_bar_background_layer_(cc::SolidColorLayer::Create()),
+ anonymize_layer_(cc::SolidColorLayer::Create()),
+ debug_layer_(cc::SolidColorLayer::Create()),
brightness_(1.f) {
toolbar_background_layer_->SetIsDrawable(true);
layer_->AddChild(toolbar_background_layer_);

Powered by Google App Engine
This is Rietveld 408576698