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

Side by Side Diff: cc/layers/layer.cc

Issue 23049007: Implemented printToSkPicture without using WebViewBenchmarkSupport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed compile error Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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/layers/layer.h" 5 #include "cc/layers/layer.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 // Intersect with content rect to avoid the extra pixel because for some 188 // Intersect with content rect to avoid the extra pixel because for some
189 // values x and y, ceil((x / y) * y) may be x + 1. 189 // values x and y, ceil((x / y) * y) may be x + 1.
190 content_rect.Intersect(gfx::Rect(content_bounds())); 190 content_rect.Intersect(gfx::Rect(content_bounds()));
191 return gfx::ToEnclosingRect(content_rect); 191 return gfx::ToEnclosingRect(content_rect);
192 } 192 }
193 193
194 bool Layer::BlocksPendingCommit() const { 194 bool Layer::BlocksPendingCommit() const {
195 return false; 195 return false;
196 } 196 }
197 197
198 skia::RefPtr<SkPicture> Layer::GetPicture() const {
199 return skia::RefPtr<SkPicture>();
200 }
201
198 bool Layer::CanClipSelf() const { 202 bool Layer::CanClipSelf() const {
199 return false; 203 return false;
200 } 204 }
201 205
202 bool Layer::BlocksPendingCommitRecursive() const { 206 bool Layer::BlocksPendingCommitRecursive() const {
203 if (BlocksPendingCommit()) 207 if (BlocksPendingCommit())
204 return true; 208 return true;
205 if (mask_layer() && mask_layer()->BlocksPendingCommitRecursive()) 209 if (mask_layer() && mask_layer()->BlocksPendingCommitRecursive())
206 return true; 210 return true;
207 if (replica_layer() && replica_layer()->BlocksPendingCommitRecursive()) 211 if (replica_layer() && replica_layer()->BlocksPendingCommitRecursive())
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 988
985 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const { 989 RenderingStatsInstrumentation* Layer::rendering_stats_instrumentation() const {
986 return layer_tree_host_->rendering_stats_instrumentation(); 990 return layer_tree_host_->rendering_stats_instrumentation();
987 } 991 }
988 992
989 bool Layer::SupportsLCDText() const { 993 bool Layer::SupportsLCDText() const {
990 return false; 994 return false;
991 } 995 }
992 996
993 } // namespace cc 997 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/picture_layer.h » ('j') | cc/layers/picture_layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698