| 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_content_layer_impl.h" | 5 #include "cc/blink/web_content_layer_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 WebContentLayerImpl::~WebContentLayerImpl() { | 61 WebContentLayerImpl::~WebContentLayerImpl() { |
| 62 static_cast<PictureLayer*>(layer_->layer())->ClearClient(); | 62 static_cast<PictureLayer*>(layer_->layer())->ClearClient(); |
| 63 } | 63 } |
| 64 | 64 |
| 65 blink::WebLayer* WebContentLayerImpl::layer() { | 65 blink::WebLayer* WebContentLayerImpl::layer() { |
| 66 return layer_.get(); | 66 return layer_.get(); |
| 67 } | 67 } |
| 68 | 68 |
| 69 void WebContentLayerImpl::setAllowTransformedRasterization(bool allowed) { | 69 void WebContentLayerImpl::setAllowTransformedRasterization(bool allowed) { |
| 70 static_cast<PictureLayer*>(layer_->layer())->SetAllowTransformedRasterization(
allowed); | 70 static_cast<PictureLayer*>(layer_->layer()) |
| 71 ->SetAllowTransformedRasterization(allowed); |
| 71 } | 72 } |
| 72 | 73 |
| 73 gfx::Rect WebContentLayerImpl::PaintableRegion() { | 74 gfx::Rect WebContentLayerImpl::PaintableRegion() { |
| 74 return client_->paintableRegion(); | 75 return client_->paintableRegion(); |
| 75 } | 76 } |
| 76 | 77 |
| 77 scoped_refptr<cc::DisplayItemList> | 78 scoped_refptr<cc::DisplayItemList> |
| 78 WebContentLayerImpl::PaintContentsToDisplayList( | 79 WebContentLayerImpl::PaintContentsToDisplayList( |
| 79 cc::ContentLayerClient::PaintingControlSetting painting_control) { | 80 cc::ContentLayerClient::PaintingControlSetting painting_control) { |
| 80 cc::DisplayItemListSettings settings; | 81 cc::DisplayItemListSettings settings; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 92 | 93 |
| 93 bool WebContentLayerImpl::FillsBoundsCompletely() const { | 94 bool WebContentLayerImpl::FillsBoundsCompletely() const { |
| 94 return false; | 95 return false; |
| 95 } | 96 } |
| 96 | 97 |
| 97 size_t WebContentLayerImpl::GetApproximateUnsharedMemoryUsage() const { | 98 size_t WebContentLayerImpl::GetApproximateUnsharedMemoryUsage() const { |
| 98 return client_->approximateUnsharedMemoryUsage(); | 99 return client_->approximateUnsharedMemoryUsage(); |
| 99 } | 100 } |
| 100 | 101 |
| 101 } // namespace cc_blink | 102 } // namespace cc_blink |
| OLD | NEW |