| 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 "cc/blink/web_layer_impl.h" | 5 #include "cc/blink/web_layer_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <utility> | 10 #include <utility> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/bind.h" | 13 #include "base/bind.h" |
| 14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
| 15 #include "base/threading/thread_checker.h" | 15 #include "base/threading/thread_checker.h" |
| 16 #include "base/trace_event/trace_event_impl.h" | 16 #include "base/trace_event/trace_event_impl.h" |
| 17 #include "cc/animation/element_id.h" | |
| 18 #include "cc/base/region.h" | 17 #include "cc/base/region.h" |
| 19 #include "cc/base/switches.h" | 18 #include "cc/base/switches.h" |
| 20 #include "cc/blink/web_blend_mode.h" | 19 #include "cc/blink/web_blend_mode.h" |
| 21 #include "cc/layers/layer.h" | 20 #include "cc/layers/layer.h" |
| 22 #include "cc/layers/layer_position_constraint.h" | 21 #include "cc/layers/layer_position_constraint.h" |
| 22 #include "cc/trees/element_id.h" |
| 23 #include "cc/trees/layer_tree_host.h" | 23 #include "cc/trees/layer_tree_host.h" |
| 24 #include "third_party/WebKit/public/platform/WebFloatPoint.h" | 24 #include "third_party/WebKit/public/platform/WebFloatPoint.h" |
| 25 #include "third_party/WebKit/public/platform/WebFloatRect.h" | 25 #include "third_party/WebKit/public/platform/WebFloatRect.h" |
| 26 #include "third_party/WebKit/public/platform/WebLayerPositionConstraint.h" | 26 #include "third_party/WebKit/public/platform/WebLayerPositionConstraint.h" |
| 27 #include "third_party/WebKit/public/platform/WebLayerScrollClient.h" | 27 #include "third_party/WebKit/public/platform/WebLayerScrollClient.h" |
| 28 #include "third_party/WebKit/public/platform/WebLayerStickyPositionConstraint.h" | 28 #include "third_party/WebKit/public/platform/WebLayerStickyPositionConstraint.h" |
| 29 #include "third_party/WebKit/public/platform/WebSize.h" | 29 #include "third_party/WebKit/public/platform/WebSize.h" |
| 30 #include "third_party/skia/include/core/SkMatrix44.h" | 30 #include "third_party/skia/include/core/SkMatrix44.h" |
| 31 #include "ui/gfx/geometry/rect_conversions.h" | 31 #include "ui/gfx/geometry/rect_conversions.h" |
| 32 #include "ui/gfx/geometry/vector2d_conversions.h" | 32 #include "ui/gfx/geometry/vector2d_conversions.h" |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 | 476 |
| 477 void WebLayerImpl::setPreferredRasterBounds(const WebSize& bounds) { | 477 void WebLayerImpl::setPreferredRasterBounds(const WebSize& bounds) { |
| 478 layer_->SetPreferredRasterBounds(bounds); | 478 layer_->SetPreferredRasterBounds(bounds); |
| 479 } | 479 } |
| 480 | 480 |
| 481 void WebLayerImpl::clearPreferredRasterBounds() { | 481 void WebLayerImpl::clearPreferredRasterBounds() { |
| 482 layer_->ClearPreferredRasterBounds(); | 482 layer_->ClearPreferredRasterBounds(); |
| 483 } | 483 } |
| 484 | 484 |
| 485 } // namespace cc_blink | 485 } // namespace cc_blink |
| OLD | NEW |