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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp

Issue 1946403003: Add fixed raster scale use counter histograms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 ASSERT(!m_parent); 158 ASSERT(!m_parent);
159 } 159 }
160 160
161 LayoutRect GraphicsLayer::visualRect() const 161 LayoutRect GraphicsLayer::visualRect() const
162 { 162 {
163 LayoutRect bounds = LayoutRect(FloatPoint(), size()); 163 LayoutRect bounds = LayoutRect(FloatPoint(), size());
164 bounds.move(offsetFromLayoutObjectWithSubpixelAccumulation()); 164 bounds.move(offsetFromLayoutObjectWithSubpixelAccumulation());
165 return bounds; 165 return bounds;
166 } 166 }
167 167
168 void GraphicsLayer::setHasWillChangeTransformHint(bool hasWillChangeTransform)
169 {
170 m_layer->layer()->setHasWillChangeTransformHint(hasWillChangeTransform);
171 }
172
168 void GraphicsLayer::setDrawDebugRedFillForTesting(bool enabled) 173 void GraphicsLayer::setDrawDebugRedFillForTesting(bool enabled)
169 { 174 {
170 s_drawDebugRedFill = enabled; 175 s_drawDebugRedFill = enabled;
171 } 176 }
172 177
173 void GraphicsLayer::setParent(GraphicsLayer* layer) 178 void GraphicsLayer::setParent(GraphicsLayer* layer)
174 { 179 {
175 ASSERT(!layer || !layer->hasAncestor(this)); 180 ASSERT(!layer || !layer->hasAncestor(this));
176 m_parent = layer; 181 m_parent = layer;
177 } 182 }
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 { 1229 {
1225 if (!layer) { 1230 if (!layer) {
1226 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); 1231 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n");
1227 return; 1232 return;
1228 } 1233 }
1229 1234
1230 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); 1235 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo);
1231 fprintf(stderr, "%s\n", output.utf8().data()); 1236 fprintf(stderr, "%s\n", output.utf8().data());
1232 } 1237 }
1233 #endif 1238 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698