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

Side by Side Diff: chrome/browser/android/compositor/layer/content_layer.cc

Issue 1801853002: Transfer LayerImpl ownership to LayerTreeImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more asan. 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 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/layer/content_layer.h" 5 #include "chrome/browser/android/compositor/layer/content_layer.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "cc/layers/layer.h" 8 #include "cc/layers/layer.h"
9 #include "cc/layers/layer_lists.h" 9 #include "cc/layers/layer_collections.h"
10 #include "chrome/browser/android/compositor/layer/thumbnail_layer.h" 10 #include "chrome/browser/android/compositor/layer/thumbnail_layer.h"
11 #include "chrome/browser/android/compositor/tab_content_manager.h" 11 #include "chrome/browser/android/compositor/tab_content_manager.h"
12 #include "content/public/browser/android/compositor.h" 12 #include "content/public/browser/android/compositor.h"
13 #include "ui/gfx/geometry/size.h" 13 #include "ui/gfx/geometry/size.h"
14 14
15 namespace chrome { 15 namespace chrome {
16 namespace android { 16 namespace android {
17 17
18 // static 18 // static
19 scoped_refptr<ContentLayer> ContentLayer::Create( 19 scoped_refptr<ContentLayer> ContentLayer::Create(
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 218
219 void ContentLayer::ClipStaticLayer(scoped_refptr<ThumbnailLayer> static_layer, 219 void ContentLayer::ClipStaticLayer(scoped_refptr<ThumbnailLayer> static_layer,
220 gfx::Rect clipping) { 220 gfx::Rect clipping) {
221 if (!static_layer.get()) 221 if (!static_layer.get())
222 return; 222 return;
223 static_layer->Clip(clipping); 223 static_layer->Clip(clipping);
224 } 224 }
225 225
226 } // namespace android 226 } // namespace android
227 } // namespace chrome 227 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/android/compositor/compositor_view.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