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 22 matching lines...) Expand all Loading... |
33 cc::ContentLayerClient::PaintingControlSetting painting_control) { | 33 cc::ContentLayerClient::PaintingControlSetting painting_control) { |
34 switch (painting_control) { | 34 switch (painting_control) { |
35 case cc::ContentLayerClient::PAINTING_BEHAVIOR_NORMAL: | 35 case cc::ContentLayerClient::PAINTING_BEHAVIOR_NORMAL: |
36 return blink::WebContentLayerClient::PaintDefaultBehavior; | 36 return blink::WebContentLayerClient::PaintDefaultBehavior; |
37 case cc::ContentLayerClient::DISPLAY_LIST_CONSTRUCTION_DISABLED: | 37 case cc::ContentLayerClient::DISPLAY_LIST_CONSTRUCTION_DISABLED: |
38 return blink::WebContentLayerClient::DisplayListConstructionDisabled; | 38 return blink::WebContentLayerClient::DisplayListConstructionDisabled; |
39 case cc::ContentLayerClient::DISPLAY_LIST_CACHING_DISABLED: | 39 case cc::ContentLayerClient::DISPLAY_LIST_CACHING_DISABLED: |
40 return blink::WebContentLayerClient::DisplayListCachingDisabled; | 40 return blink::WebContentLayerClient::DisplayListCachingDisabled; |
41 case cc::ContentLayerClient::DISPLAY_LIST_PAINTING_DISABLED: | 41 case cc::ContentLayerClient::DISPLAY_LIST_PAINTING_DISABLED: |
42 return blink::WebContentLayerClient::DisplayListPaintingDisabled; | 42 return blink::WebContentLayerClient::DisplayListPaintingDisabled; |
| 43 case cc::ContentLayerClient::SUBSEQUENCE_CACHING_DISABLED: |
| 44 return blink::WebContentLayerClient::SubsequenceCachingDisabled; |
43 } | 45 } |
44 NOTREACHED(); | 46 NOTREACHED(); |
45 return blink::WebContentLayerClient::PaintDefaultBehavior; | 47 return blink::WebContentLayerClient::PaintDefaultBehavior; |
46 } | 48 } |
47 | 49 |
48 WebContentLayerImpl::WebContentLayerImpl(blink::WebContentLayerClient* client) | 50 WebContentLayerImpl::WebContentLayerImpl(blink::WebContentLayerClient* client) |
49 : client_(client) { | 51 : client_(client) { |
50 layer_ = make_scoped_ptr(new WebLayerImpl( | 52 layer_ = make_scoped_ptr(new WebLayerImpl( |
51 PictureLayer::Create(WebLayerImpl::LayerSettings(), this))); | 53 PictureLayer::Create(WebLayerImpl::LayerSettings(), this))); |
52 layer_->layer()->SetIsDrawable(true); | 54 layer_->layer()->SetIsDrawable(true); |
(...skipping 29 matching lines...) Expand all Loading... |
82 | 84 |
83 bool WebContentLayerImpl::FillsBoundsCompletely() const { | 85 bool WebContentLayerImpl::FillsBoundsCompletely() const { |
84 return false; | 86 return false; |
85 } | 87 } |
86 | 88 |
87 size_t WebContentLayerImpl::GetApproximateUnsharedMemoryUsage() const { | 89 size_t WebContentLayerImpl::GetApproximateUnsharedMemoryUsage() const { |
88 return client_->approximateUnsharedMemoryUsage(); | 90 return client_->approximateUnsharedMemoryUsage(); |
89 } | 91 } |
90 | 92 |
91 } // namespace cc_blink | 93 } // namespace cc_blink |
OLD | NEW |