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

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: rebase+fix 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 ASSERT(!m_parent); 157 ASSERT(!m_parent);
158 } 158 }
159 159
160 LayoutRect GraphicsLayer::visualRect() const 160 LayoutRect GraphicsLayer::visualRect() const
161 { 161 {
162 LayoutRect bounds = LayoutRect(FloatPoint(), size()); 162 LayoutRect bounds = LayoutRect(FloatPoint(), size());
163 bounds.move(offsetFromLayoutObjectWithSubpixelAccumulation()); 163 bounds.move(offsetFromLayoutObjectWithSubpixelAccumulation());
164 return bounds; 164 return bounds;
165 } 165 }
166 166
167 void GraphicsLayer::setHasWillChangeTransformHint(bool hasWillChangeTransform)
168 {
169 m_layer->layer()->setHasWillChangeTransformHint(hasWillChangeTransform);
170 }
171
167 void GraphicsLayer::setDrawDebugRedFillForTesting(bool enabled) 172 void GraphicsLayer::setDrawDebugRedFillForTesting(bool enabled)
168 { 173 {
169 s_drawDebugRedFill = enabled; 174 s_drawDebugRedFill = enabled;
170 } 175 }
171 176
172 void GraphicsLayer::setParent(GraphicsLayer* layer) 177 void GraphicsLayer::setParent(GraphicsLayer* layer)
173 { 178 {
174 ASSERT(!layer || !layer->hasAncestor(this)); 179 ASSERT(!layer || !layer->hasAncestor(this));
175 m_parent = layer; 180 m_parent = layer;
176 } 181 }
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
1223 { 1228 {
1224 if (!layer) { 1229 if (!layer) {
1225 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); 1230 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n");
1226 return; 1231 return;
1227 } 1232 }
1228 1233
1229 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); 1234 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo);
1230 fprintf(stderr, "%s\n", output.utf8().data()); 1235 fprintf(stderr, "%s\n", output.utf8().data());
1231 } 1236 }
1232 #endif 1237 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698