| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 return client_->paintableRegion(); | 68 return client_->paintableRegion(); |
| 69 } | 69 } |
| 70 | 70 |
| 71 scoped_refptr<cc::DisplayItemList> | 71 scoped_refptr<cc::DisplayItemList> |
| 72 WebContentLayerImpl::PaintContentsToDisplayList( | 72 WebContentLayerImpl::PaintContentsToDisplayList( |
| 73 cc::ContentLayerClient::PaintingControlSetting painting_control) { | 73 cc::ContentLayerClient::PaintingControlSetting painting_control) { |
| 74 cc::DisplayItemListSettings settings; | 74 cc::DisplayItemListSettings settings; |
| 75 settings.use_cached_picture = UseCachedPictureRaster(); | 75 settings.use_cached_picture = UseCachedPictureRaster(); |
| 76 | 76 |
| 77 scoped_refptr<cc::DisplayItemList> display_list = | 77 scoped_refptr<cc::DisplayItemList> display_list = |
| 78 cc::DisplayItemList::Create(PaintableRegion(), settings); | 78 cc::DisplayItemList::Create(settings); |
| 79 if (client_) { | 79 if (client_) { |
| 80 WebDisplayItemListImpl list(display_list.get()); | 80 WebDisplayItemListImpl list(display_list.get()); |
| 81 client_->paintContents(&list, PaintingControlToWeb(painting_control)); | 81 client_->paintContents(&list, PaintingControlToWeb(painting_control)); |
| 82 } | 82 } |
| 83 display_list->Finalize(); | 83 display_list->Finalize(); |
| 84 return display_list; | 84 return display_list; |
| 85 } | 85 } |
| 86 | 86 |
| 87 bool WebContentLayerImpl::FillsBoundsCompletely() const { | 87 bool WebContentLayerImpl::FillsBoundsCompletely() const { |
| 88 return false; | 88 return false; |
| 89 } | 89 } |
| 90 | 90 |
| 91 size_t WebContentLayerImpl::GetApproximateUnsharedMemoryUsage() const { | 91 size_t WebContentLayerImpl::GetApproximateUnsharedMemoryUsage() const { |
| 92 return client_->approximateUnsharedMemoryUsage(); | 92 return client_->approximateUnsharedMemoryUsage(); |
| 93 } | 93 } |
| 94 | 94 |
| 95 } // namespace cc_blink | 95 } // namespace cc_blink |
| OLD | NEW |