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

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

Issue 1730653002: Move squash preventing reasons out of compositing reasons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug and test fixes. Created 4 years, 9 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 * Copyright (C) 2013 Intel Corporation. All rights reserved. 3 * Copyright (C) 2013 Intel Corporation. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 static PassOwnPtr<GraphicsLayer> create(GraphicsLayerFactory*, GraphicsLayer Client*); 79 static PassOwnPtr<GraphicsLayer> create(GraphicsLayerFactory*, GraphicsLayer Client*);
80 80
81 ~GraphicsLayer() override; 81 ~GraphicsLayer() override;
82 82
83 GraphicsLayerClient* client() const { return m_client; } 83 GraphicsLayerClient* client() const { return m_client; }
84 84
85 GraphicsLayerDebugInfo& debugInfo(); 85 GraphicsLayerDebugInfo& debugInfo();
86 86
87 void setCompositingReasons(CompositingReasons); 87 void setCompositingReasons(CompositingReasons);
88 CompositingReasons compositingReasons() const { return m_debugInfo.compositi ngReasons(); } 88 CompositingReasons compositingReasons() const { return m_debugInfo.compositi ngReasons(); }
89 void setSquashingDisallowedReasons(SquashingDisallowedReasons);
89 void setOwnerNodeId(int); 90 void setOwnerNodeId(int);
90 91
91 GraphicsLayer* parent() const { return m_parent; } 92 GraphicsLayer* parent() const { return m_parent; }
92 void setParent(GraphicsLayer*); // Internal use only. 93 void setParent(GraphicsLayer*); // Internal use only.
93 94
94 const Vector<GraphicsLayer*>& children() const { return m_children; } 95 const Vector<GraphicsLayer*>& children() const { return m_children; }
95 // Returns true if the child list changed. 96 // Returns true if the child list changed.
96 bool setChildren(const GraphicsLayerVector&); 97 bool setChildren(const GraphicsLayerVector&);
97 98
98 // Add child layers. If the child is already parented, it will be removed fr om its old parent. 99 // Add child layers. If the child is already parented, it will be removed fr om its old parent.
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 }; 382 };
382 383
383 } // namespace blink 384 } // namespace blink
384 385
385 #ifndef NDEBUG 386 #ifndef NDEBUG
386 // Outside the blink namespace for ease of invocation from gdb. 387 // Outside the blink namespace for ease of invocation from gdb.
387 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); 388 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*);
388 #endif 389 #endif
389 390
390 #endif // GraphicsLayer_h 391 #endif // GraphicsLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698