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

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

Issue 1690763003: Never call GraphicsLayer::paint when fetching painted output from cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 16 matching lines...) Expand all
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
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
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