| 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/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
| 15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
| 16 #include "base/threading/thread_checker.h" | 16 #include "base/threading/thread_checker.h" |
| 17 #include "base/trace_event/trace_event_impl.h" | 17 #include "base/trace_event/trace_event_impl.h" |
| 18 #include "cc/animation/animation.h" | 18 #include "cc/animation/animation.h" |
| 19 #include "cc/animation/layer_tree_mutation.h" |
| 19 #include "cc/animation/mutable_properties.h" | 20 #include "cc/animation/mutable_properties.h" |
| 20 #include "cc/base/region.h" | 21 #include "cc/base/region.h" |
| 21 #include "cc/base/switches.h" | 22 #include "cc/base/switches.h" |
| 22 #include "cc/blink/web_animation_impl.h" | 23 #include "cc/blink/web_animation_impl.h" |
| 23 #include "cc/blink/web_blend_mode.h" | 24 #include "cc/blink/web_blend_mode.h" |
| 24 #include "cc/blink/web_filter_operations_impl.h" | 25 #include "cc/blink/web_filter_operations_impl.h" |
| 25 #include "cc/blink/web_to_cc_animation_delegate_adapter.h" | 26 #include "cc/blink/web_to_cc_animation_delegate_adapter.h" |
| 26 #include "cc/layers/layer.h" | 27 #include "cc/layers/layer.h" |
| 27 #include "cc/layers/layer_position_constraint.h" | 28 #include "cc/layers/layer_position_constraint.h" |
| 28 #include "cc/layers/layer_settings.h" | 29 #include "cc/layers/layer_settings.h" |
| 29 #include "cc/trees/layer_tree_host.h" | 30 #include "cc/trees/layer_tree_host.h" |
| 30 #include "third_party/WebKit/public/platform/WebCompositorMutableProperties.h" | 31 #include "third_party/WebKit/public/platform/WebCompositorMutableProperties.h" |
| 31 #include "third_party/WebKit/public/platform/WebFloatPoint.h" | 32 #include "third_party/WebKit/public/platform/WebFloatPoint.h" |
| 32 #include "third_party/WebKit/public/platform/WebFloatRect.h" | 33 #include "third_party/WebKit/public/platform/WebFloatRect.h" |
| 33 #include "third_party/WebKit/public/platform/WebLayerPositionConstraint.h" | 34 #include "third_party/WebKit/public/platform/WebLayerPositionConstraint.h" |
| 34 #include "third_party/WebKit/public/platform/WebLayerScrollClient.h" | 35 #include "third_party/WebKit/public/platform/WebLayerScrollClient.h" |
| 36 #include "third_party/WebKit/public/platform/WebMutableProperties.h" |
| 37 #include "third_party/WebKit/public/platform/WebMutation.h" |
| 35 #include "third_party/WebKit/public/platform/WebSize.h" | 38 #include "third_party/WebKit/public/platform/WebSize.h" |
| 36 #include "third_party/skia/include/utils/SkMatrix44.h" | 39 #include "third_party/skia/include/utils/SkMatrix44.h" |
| 37 #include "ui/gfx/geometry/rect_conversions.h" | 40 #include "ui/gfx/geometry/rect_conversions.h" |
| 38 #include "ui/gfx/geometry/vector2d_conversions.h" | 41 #include "ui/gfx/geometry/vector2d_conversions.h" |
| 39 | 42 |
| 40 using cc::Animation; | 43 using cc::Animation; |
| 41 using cc::Layer; | 44 using cc::Layer; |
| 42 using blink::WebLayer; | 45 using blink::WebLayer; |
| 43 using blink::WebFloatPoint; | 46 using blink::WebFloatPoint; |
| 44 using blink::WebVector; | 47 using blink::WebVector; |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 | 563 |
| 561 Layer* WebLayerImpl::layer() const { | 564 Layer* WebLayerImpl::layer() const { |
| 562 return layer_.get(); | 565 return layer_.get(); |
| 563 } | 566 } |
| 564 | 567 |
| 565 void WebLayerImpl::SetContentsOpaqueIsFixed(bool fixed) { | 568 void WebLayerImpl::SetContentsOpaqueIsFixed(bool fixed) { |
| 566 contents_opaque_is_fixed_ = fixed; | 569 contents_opaque_is_fixed_ = fixed; |
| 567 } | 570 } |
| 568 | 571 |
| 569 } // namespace cc_blink | 572 } // namespace cc_blink |
| OLD | NEW |