| 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 16 matching lines...) Expand all Loading... |
| 27 cc::switches::kDisableCachedPictureRaster); | 27 cc::switches::kDisableCachedPictureRaster); |
| 28 return use; | 28 return use; |
| 29 } | 29 } |
| 30 | 30 |
| 31 static blink::WebContentLayerClient::PaintingControlSetting | 31 static blink::WebContentLayerClient::PaintingControlSetting |
| 32 PaintingControlToWeb( | 32 PaintingControlToWeb( |
| 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::PAINTING_BEHAVIOR_NORMAL_FOR_TEST: |
| 38 return blink::WebContentLayerClient::PaintDefaultBehaviorForTest; |
| 37 case cc::ContentLayerClient::DISPLAY_LIST_CONSTRUCTION_DISABLED: | 39 case cc::ContentLayerClient::DISPLAY_LIST_CONSTRUCTION_DISABLED: |
| 38 return blink::WebContentLayerClient::DisplayListConstructionDisabled; | 40 return blink::WebContentLayerClient::DisplayListConstructionDisabled; |
| 39 case cc::ContentLayerClient::DISPLAY_LIST_CACHING_DISABLED: | 41 case cc::ContentLayerClient::DISPLAY_LIST_CACHING_DISABLED: |
| 40 return blink::WebContentLayerClient::DisplayListCachingDisabled; | 42 return blink::WebContentLayerClient::DisplayListCachingDisabled; |
| 41 case cc::ContentLayerClient::DISPLAY_LIST_PAINTING_DISABLED: | 43 case cc::ContentLayerClient::DISPLAY_LIST_PAINTING_DISABLED: |
| 42 return blink::WebContentLayerClient::DisplayListPaintingDisabled; | 44 return blink::WebContentLayerClient::DisplayListPaintingDisabled; |
| 43 case cc::ContentLayerClient::SUBSEQUENCE_CACHING_DISABLED: | 45 case cc::ContentLayerClient::SUBSEQUENCE_CACHING_DISABLED: |
| 44 return blink::WebContentLayerClient::SubsequenceCachingDisabled; | 46 return blink::WebContentLayerClient::SubsequenceCachingDisabled; |
| 45 } | 47 } |
| 46 NOTREACHED(); | 48 NOTREACHED(); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 86 |
| 85 bool WebContentLayerImpl::FillsBoundsCompletely() const { | 87 bool WebContentLayerImpl::FillsBoundsCompletely() const { |
| 86 return false; | 88 return false; |
| 87 } | 89 } |
| 88 | 90 |
| 89 size_t WebContentLayerImpl::GetApproximateUnsharedMemoryUsage() const { | 91 size_t WebContentLayerImpl::GetApproximateUnsharedMemoryUsage() const { |
| 90 return client_->approximateUnsharedMemoryUsage(); | 92 return client_->approximateUnsharedMemoryUsage(); |
| 91 } | 93 } |
| 92 | 94 |
| 93 } // namespace cc_blink | 95 } // namespace cc_blink |
| OLD | NEW |