OLD | NEW |
---|---|
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 "webkit/compositor_bindings/web_layer_impl.h" | 5 #include "webkit/compositor_bindings/web_layer_impl.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "cc/animation/animation.h" | 8 #include "cc/animation/animation.h" |
9 #include "cc/base/region.h" | 9 #include "cc/base/region.h" |
10 #include "cc/layers/layer.h" | 10 #include "cc/layers/layer.h" |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
319 return layer_->fixed_to_container_layer(); | 319 return layer_->fixed_to_container_layer(); |
320 } | 320 } |
321 | 321 |
322 void WebLayerImpl::setScrollClient( | 322 void WebLayerImpl::setScrollClient( |
323 WebKit::WebLayerScrollClient* scroll_client) { | 323 WebKit::WebLayerScrollClient* scroll_client) { |
324 layer_->set_layer_scroll_client(scroll_client); | 324 layer_->set_layer_scroll_client(scroll_client); |
325 } | 325 } |
326 | 326 |
327 Layer* WebLayerImpl::layer() const { return layer_.get(); } | 327 Layer* WebLayerImpl::layer() const { return layer_.get(); } |
328 | 328 |
329 bool WebLayerImpl::isOrphan() const { return !layer_->layer_tree_host(); } | |
scherkus (not reviewing)
2013/03/18 21:38:24
q:
1) is layer_ guaranteed to be non-null? OR
danakj
2013/03/18 21:57:59
yes layer_ is not null. it is set to a valid point
scherkus (not reviewing)
2013/03/18 23:34:18
ah! thanks for the explanation
| |
330 | |
329 } // namespace WebKit | 331 } // namespace WebKit |
OLD | NEW |