Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: cc/blink/web_content_layer_impl.cc

Issue 1552693002: Add paint testing mode subsequence_caching_disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@RemoveSyncPaint
Patch Set: Rebase on origin/master Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | cc/debug/rasterize_and_record_benchmark.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | cc/debug/rasterize_and_record_benchmark.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698