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

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

Issue 15181006: Plumb CompositingReason from Blink to compositor. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed reviewer feedback, keeping the forwarding include Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/platform/graphics/GraphicsLayer.h ('k') | Source/core/rendering/RenderLayer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 m_name = String::format("GraphicsLayer(%p) ", this) + name; 1062 m_name = String::format("GraphicsLayer(%p) ", this) + name;
1063 updateNames(); 1063 updateNames();
1064 } 1064 }
1065 1065
1066 int GraphicsLayer::debugID() const 1066 int GraphicsLayer::debugID() const
1067 { 1067 {
1068 // FIXME: change this to assert m_layer always exists, and remove enum. 1068 // FIXME: change this to assert m_layer always exists, and remove enum.
1069 return m_layer ? m_layer->layer()->id() : DebugIDNoCompositedLayer; 1069 return m_layer ? m_layer->layer()->id() : DebugIDNoCompositedLayer;
1070 } 1070 }
1071 1071
1072 void GraphicsLayer::setCompositingReasons(WebKit::WebCompositingReasons reasons)
1073 {
1074 m_layer->layer()->setCompositingReasons(reasons);
1075 }
1076
1072 void GraphicsLayer::setPosition(const FloatPoint& point) 1077 void GraphicsLayer::setPosition(const FloatPoint& point)
1073 { 1078 {
1074 m_position = point; 1079 m_position = point;
1075 updateLayerPosition(); 1080 updateLayerPosition();
1076 } 1081 }
1077 1082
1078 void GraphicsLayer::setAnchorPoint(const FloatPoint3D& point) 1083 void GraphicsLayer::setAnchorPoint(const FloatPoint3D& point)
1079 { 1084 {
1080 m_anchorPoint = point; 1085 m_anchorPoint = point;
1081 updateAnchorPoint(); 1086 updateAnchorPoint();
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
1442 #ifndef NDEBUG 1447 #ifndef NDEBUG
1443 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer) 1448 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer)
1444 { 1449 {
1445 if (!layer) 1450 if (!layer)
1446 return; 1451 return;
1447 1452
1448 String output = layer->layerTreeAsText(LayerTreeAsTextDebug | LayerTreeAsTex tIncludeVisibleRects); 1453 String output = layer->layerTreeAsText(LayerTreeAsTextDebug | LayerTreeAsTex tIncludeVisibleRects);
1449 fprintf(stderr, "%s\n", output.utf8().data()); 1454 fprintf(stderr, "%s\n", output.utf8().data());
1450 } 1455 }
1451 #endif 1456 #endif
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/GraphicsLayer.h ('k') | Source/core/rendering/RenderLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698