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

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

Issue 1271843005: cc: Remove code for drawing checkerboard quads, it's not used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rm-checkers: sizes Created 5 years, 4 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 | « cc/blink/web_content_layer_impl.h ('k') | cc/cc.gyp » ('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 "cc/blink/web_display_item_list_impl.h" 7 #include "cc/blink/web_display_item_list_impl.h"
8 #include "cc/layers/picture_layer.h" 8 #include "cc/layers/picture_layer.h"
9 #include "cc/playback/display_item_list_settings.h" 9 #include "cc/playback/display_item_list_settings.h"
10 #include "third_party/WebKit/public/platform/WebContentLayerClient.h" 10 #include "third_party/WebKit/public/platform/WebContentLayerClient.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 blink::WebLayer* WebContentLayerImpl::layer() { 49 blink::WebLayer* WebContentLayerImpl::layer() {
50 return layer_.get(); 50 return layer_.get();
51 } 51 }
52 52
53 void WebContentLayerImpl::setDoubleSided(bool double_sided) { 53 void WebContentLayerImpl::setDoubleSided(bool double_sided) {
54 layer_->layer()->SetDoubleSided(double_sided); 54 layer_->layer()->SetDoubleSided(double_sided);
55 } 55 }
56 56
57 void WebContentLayerImpl::setDrawCheckerboardForMissingTiles(bool enable) { 57 void WebContentLayerImpl::setDrawCheckerboardForMissingTiles(bool enable) {
58 layer_->layer()->SetDrawCheckerboardForMissingTiles(enable);
59 } 58 }
60 59
61 void WebContentLayerImpl::PaintContents( 60 void WebContentLayerImpl::PaintContents(
62 SkCanvas* canvas, 61 SkCanvas* canvas,
63 const gfx::Rect& clip, 62 const gfx::Rect& clip,
64 cc::ContentLayerClient::PaintingControlSetting painting_control) { 63 cc::ContentLayerClient::PaintingControlSetting painting_control) {
65 if (!client_) 64 if (!client_)
66 return; 65 return;
67 66
68 client_->paintContents(canvas, clip, PaintingControlToWeb(painting_control)); 67 client_->paintContents(canvas, clip, PaintingControlToWeb(painting_control));
(...skipping 18 matching lines...) Expand all
87 86
88 bool WebContentLayerImpl::FillsBoundsCompletely() const { 87 bool WebContentLayerImpl::FillsBoundsCompletely() const {
89 return false; 88 return false;
90 } 89 }
91 90
92 size_t WebContentLayerImpl::GetApproximateUnsharedMemoryUsage() const { 91 size_t WebContentLayerImpl::GetApproximateUnsharedMemoryUsage() const {
93 return client_->approximateUnsharedMemoryUsage(); 92 return client_->approximateUnsharedMemoryUsage();
94 } 93 }
95 94
96 } // namespace cc_blink 95 } // namespace cc_blink
OLDNEW
« no previous file with comments | « cc/blink/web_content_layer_impl.h ('k') | cc/cc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698