| OLD | NEW |
| 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/base/filter_operations.h" |
| 8 #include "cc/layers/layer.h" | 9 #include "cc/layers/layer.h" |
| 9 #include "cc/layers/layer_collections.h" | 10 #include "cc/layers/layer_collections.h" |
| 10 #include "cc/layers/surface_layer.h" | 11 #include "cc/layers/surface_layer.h" |
| 11 #include "cc/output/filter_operations.h" | |
| 12 #include "chrome/browser/android/compositor/layer/thumbnail_layer.h" | 12 #include "chrome/browser/android/compositor/layer/thumbnail_layer.h" |
| 13 #include "chrome/browser/android/compositor/tab_content_manager.h" | 13 #include "chrome/browser/android/compositor/tab_content_manager.h" |
| 14 #include "content/public/browser/android/compositor.h" | 14 #include "content/public/browser/android/compositor.h" |
| 15 #include "ui/gfx/geometry/size.h" | 15 #include "ui/gfx/geometry/size.h" |
| 16 | 16 |
| 17 namespace android { | 17 namespace android { |
| 18 | 18 |
| 19 // static | 19 // static |
| 20 scoped_refptr<ContentLayer> ContentLayer::Create( | 20 scoped_refptr<ContentLayer> ContentLayer::Create( |
| 21 TabContentManager* tab_content_manager) { | 21 TabContentManager* tab_content_manager) { |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 } | 131 } |
| 132 | 132 |
| 133 ContentLayer::ContentLayer(TabContentManager* tab_content_manager) | 133 ContentLayer::ContentLayer(TabContentManager* tab_content_manager) |
| 134 : layer_(cc::Layer::Create()), | 134 : layer_(cc::Layer::Create()), |
| 135 tab_content_manager_(tab_content_manager) {} | 135 tab_content_manager_(tab_content_manager) {} |
| 136 | 136 |
| 137 ContentLayer::~ContentLayer() { | 137 ContentLayer::~ContentLayer() { |
| 138 } | 138 } |
| 139 | 139 |
| 140 } // namespace android | 140 } // namespace android |
| OLD | NEW |