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

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

Issue 1238123004: Slimming Paint phase 2 compositing algorithm plumbing & skeleton display list API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 /* 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 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 m_layer->layer()->setScrollClient(0); 1128 m_layer->layer()->setScrollClient(0);
1129 else 1129 else
1130 m_layer->layer()->setScrollClient(this); 1130 m_layer->layer()->setScrollClient(this);
1131 } 1131 }
1132 1132
1133 void GraphicsLayer::paint(GraphicsContext& context, const IntRect& clip) 1133 void GraphicsLayer::paint(GraphicsContext& context, const IntRect& clip)
1134 { 1134 {
1135 paintGraphicsLayerContents(context, clip); 1135 paintGraphicsLayerContents(context, clip);
1136 } 1136 }
1137 1137
1138 void GraphicsLayer::paint(GraphicsContext& context)
1139 {
1140 // TODO(chrishtr: fix this rect to instead derive interest rect during paint (crbug.com/486603).
1141 paintGraphicsLayerContents(context, LayoutRect::infiniteIntRect());
1142 }
1138 1143
1139 void GraphicsLayer::notifyAnimationStarted(double monotonicTime, int group) 1144 void GraphicsLayer::notifyAnimationStarted(double monotonicTime, int group)
1140 { 1145 {
1141 if (m_client) 1146 if (m_client)
1142 m_client->notifyAnimationStarted(this, monotonicTime, group); 1147 m_client->notifyAnimationStarted(this, monotonicTime, group);
1143 } 1148 }
1144 1149
1145 void GraphicsLayer::notifyAnimationFinished(double, int group) 1150 void GraphicsLayer::notifyAnimationFinished(double, int group)
1146 { 1151 {
1147 if (m_scrollableArea) 1152 if (m_scrollableArea)
(...skipping 27 matching lines...) Expand all
1175 { 1180 {
1176 if (!layer) { 1181 if (!layer) {
1177 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); 1182 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n");
1178 return; 1183 return;
1179 } 1184 }
1180 1185
1181 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); 1186 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo);
1182 fprintf(stderr, "%s\n", output.utf8().data()); 1187 fprintf(stderr, "%s\n", output.utf8().data());
1183 } 1188 }
1184 #endif 1189 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698