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

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

Issue 2555363004: [6/6] git cl format (Closed)
Patch Set: Created 4 years 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 | « cc/base/scale_translate2d.h ('k') | cc/debug/rasterize_and_record_benchmark_impl.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 "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 WebContentLayerImpl::~WebContentLayerImpl() { 61 WebContentLayerImpl::~WebContentLayerImpl() {
62 static_cast<PictureLayer*>(layer_->layer())->ClearClient(); 62 static_cast<PictureLayer*>(layer_->layer())->ClearClient();
63 } 63 }
64 64
65 blink::WebLayer* WebContentLayerImpl::layer() { 65 blink::WebLayer* WebContentLayerImpl::layer() {
66 return layer_.get(); 66 return layer_.get();
67 } 67 }
68 68
69 void WebContentLayerImpl::setAllowTransformedRasterization(bool allowed) { 69 void WebContentLayerImpl::setAllowTransformedRasterization(bool allowed) {
70 static_cast<PictureLayer*>(layer_->layer())->SetAllowTransformedRasterization( allowed); 70 static_cast<PictureLayer*>(layer_->layer())
71 ->SetAllowTransformedRasterization(allowed);
71 } 72 }
72 73
73 gfx::Rect WebContentLayerImpl::PaintableRegion() { 74 gfx::Rect WebContentLayerImpl::PaintableRegion() {
74 return client_->paintableRegion(); 75 return client_->paintableRegion();
75 } 76 }
76 77
77 scoped_refptr<cc::DisplayItemList> 78 scoped_refptr<cc::DisplayItemList>
78 WebContentLayerImpl::PaintContentsToDisplayList( 79 WebContentLayerImpl::PaintContentsToDisplayList(
79 cc::ContentLayerClient::PaintingControlSetting painting_control) { 80 cc::ContentLayerClient::PaintingControlSetting painting_control) {
80 cc::DisplayItemListSettings settings; 81 cc::DisplayItemListSettings settings;
(...skipping 11 matching lines...) Expand all
92 93
93 bool WebContentLayerImpl::FillsBoundsCompletely() const { 94 bool WebContentLayerImpl::FillsBoundsCompletely() const {
94 return false; 95 return false;
95 } 96 }
96 97
97 size_t WebContentLayerImpl::GetApproximateUnsharedMemoryUsage() const { 98 size_t WebContentLayerImpl::GetApproximateUnsharedMemoryUsage() const {
98 return client_->approximateUnsharedMemoryUsage(); 99 return client_->approximateUnsharedMemoryUsage();
99 } 100 }
100 101
101 } // namespace cc_blink 102 } // namespace cc_blink
OLDNEW
« no previous file with comments | « cc/base/scale_translate2d.h ('k') | cc/debug/rasterize_and_record_benchmark_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698