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

Side by Side Diff: chrome/browser/android/compositor/decoration_title.cc

Issue 1371523003: Android: Don't destroy LayerTreeHost when Surface goes away (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/android/compositor/decoration_title.h" 5 #include "chrome/browser/android/compositor/decoration_title.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 8
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "cc/layers/layer.h" 11 #include "cc/layers/layer.h"
12 #include "cc/layers/ui_resource_layer.h" 12 #include "cc/layers/ui_resource_layer.h"
13 #include "cc/resources/scoped_ui_resource.h"
13 #include "chrome/browser/android/compositor/layer_title_cache.h" 14 #include "chrome/browser/android/compositor/layer_title_cache.h"
14 #include "content/public/browser/android/compositor.h" 15 #include "content/public/browser/android/compositor.h"
15 #include "ui/android/resources/resource_manager.h" 16 #include "ui/android/resources/resource_manager.h"
16 #include "ui/android/resources/ui_resource_android.h"
17 #include "ui/base/l10n/l10n_util_android.h" 17 #include "ui/base/l10n/l10n_util_android.h"
18 #include "ui/gfx/android/java_bitmap.h" 18 #include "ui/gfx/android/java_bitmap.h"
19 #include "ui/gfx/geometry/vector3d_f.h" 19 #include "ui/gfx/geometry/vector3d_f.h"
20 20
21 namespace chrome { 21 namespace chrome {
22 namespace android { 22 namespace android {
23 23
24 DecorationTitle::DecorationTitle(LayerTitleCache* layer_title_cache, 24 DecorationTitle::DecorationTitle(LayerTitleCache* layer_title_cache,
25 ui::ResourceManager* resource_manager, 25 ui::ResourceManager* resource_manager,
26 int title_resource_id, 26 int title_resource_id,
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 } 238 }
239 } 239 }
240 240
241 scoped_refptr<cc::Layer> DecorationTitle::layer() { 241 scoped_refptr<cc::Layer> DecorationTitle::layer() {
242 DCHECK(layer_.get()); 242 DCHECK(layer_.get());
243 return layer_; 243 return layer_;
244 } 244 }
245 245
246 } // namespace android 246 } // namespace android
247 } // namespace chrome 247 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698