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