Chromium Code Reviews| 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 "cc/blink/web_display_item_list_impl.h" | 7 #include "cc/blink/web_display_item_list_impl.h" |
| 8 #include "cc/layers/picture_layer.h" | 8 #include "cc/layers/picture_layer.h" |
| 9 #include "cc/playback/display_item_list_settings.h" | 9 #include "cc/playback/display_item_list_settings.h" |
| 10 #include "third_party/WebKit/public/platform/WebContentLayerClient.h" | 10 #include "third_party/WebKit/public/platform/WebContentLayerClient.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 47 } | 47 } |
| 48 | 48 |
| 49 blink::WebLayer* WebContentLayerImpl::layer() { | 49 blink::WebLayer* WebContentLayerImpl::layer() { |
| 50 return layer_.get(); | 50 return layer_.get(); |
| 51 } | 51 } |
| 52 | 52 |
| 53 void WebContentLayerImpl::setDoubleSided(bool double_sided) { | 53 void WebContentLayerImpl::setDoubleSided(bool double_sided) { |
| 54 layer_->layer()->SetDoubleSided(double_sided); | 54 layer_->layer()->SetDoubleSided(double_sided); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void WebContentLayerImpl::setDrawCheckerboardForMissingTiles(bool enable) { | 57 void WebContentLayerImpl::setDrawCheckerboardForMissingTiles(bool enable) { |
|
vmpstr
2015/08/03 23:53:38
TODO to remove or does this have to stay?
danakj
2015/08/03 23:58:05
I have to make blink side not pure virtual first D
| |
| 58 layer_->layer()->SetDrawCheckerboardForMissingTiles(enable); | |
| 59 } | 58 } |
| 60 | 59 |
| 61 void WebContentLayerImpl::PaintContents( | 60 void WebContentLayerImpl::PaintContents( |
| 62 SkCanvas* canvas, | 61 SkCanvas* canvas, |
| 63 const gfx::Rect& clip, | 62 const gfx::Rect& clip, |
| 64 cc::ContentLayerClient::PaintingControlSetting painting_control) { | 63 cc::ContentLayerClient::PaintingControlSetting painting_control) { |
| 65 if (!client_) | 64 if (!client_) |
| 66 return; | 65 return; |
| 67 | 66 |
| 68 client_->paintContents(canvas, clip, PaintingControlToWeb(painting_control)); | 67 client_->paintContents(canvas, clip, PaintingControlToWeb(painting_control)); |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 87 | 86 |
| 88 bool WebContentLayerImpl::FillsBoundsCompletely() const { | 87 bool WebContentLayerImpl::FillsBoundsCompletely() const { |
| 89 return false; | 88 return false; |
| 90 } | 89 } |
| 91 | 90 |
| 92 size_t WebContentLayerImpl::GetApproximateUnsharedMemoryUsage() const { | 91 size_t WebContentLayerImpl::GetApproximateUnsharedMemoryUsage() const { |
| 93 return client_->approximateUnsharedMemoryUsage(); | 92 return client_->approximateUnsharedMemoryUsage(); |
| 94 } | 93 } |
| 95 | 94 |
| 96 } // namespace cc_blink | 95 } // namespace cc_blink |
| OLD | NEW |