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

Side by Side Diff: sky/engine/platform/graphics/GraphicsLayer.h

Issue 758843004: Delete most of rendering/compositing. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 void removeAnimation(int animationId); 188 void removeAnimation(int animationId);
189 189
190 // Layer contents 190 // Layer contents
191 void setContentsToImage(Image*); 191 void setContentsToImage(Image*);
192 void setContentsToPlatformLayer(WebLayer* layer) { setContentsTo(layer); } 192 void setContentsToPlatformLayer(WebLayer* layer) { setContentsTo(layer); }
193 bool hasContentsLayer() const { return m_contentsLayer; } 193 bool hasContentsLayer() const { return m_contentsLayer; }
194 194
195 // For hosting this GraphicsLayer in a native layer hierarchy. 195 // For hosting this GraphicsLayer in a native layer hierarchy.
196 WebLayer* platformLayer() const; 196 WebLayer* platformLayer() const;
197 197
198 typedef HashMap<int, int> RenderingContextMap;
199 PassRefPtr<JSONObject> layerTreeAsJSON(LayerTreeFlags, RenderingContextMap&) const;
200
201 int paintCount() const { return m_paintCount; } 198 int paintCount() const { return m_paintCount; }
202 199
203 // Return a string with a human readable form of the layer tree, If debug is true
204 // pointers for the layers and timing data will be included in the returned string.
205 String layerTreeAsText(LayerTreeFlags = LayerTreeNormal) const;
206
207 void resetTrackedPaintInvalidations(); 200 void resetTrackedPaintInvalidations();
208 void addRepaintRect(const FloatRect&); 201 void addRepaintRect(const FloatRect&);
209 202
210 void addLinkHighlight(LinkHighlightClient*); 203 void addLinkHighlight(LinkHighlightClient*);
211 void removeLinkHighlight(LinkHighlightClient*); 204 void removeLinkHighlight(LinkHighlightClient*);
212 // Exposed for tests 205 // Exposed for tests
213 unsigned numLinkHighlights() { return m_linkHighlights.size(); } 206 unsigned numLinkHighlights() { return m_linkHighlights.size(); }
214 LinkHighlightClient* linkHighlight(int i) { return m_linkHighlights[i]; } 207 LinkHighlightClient* linkHighlight(int i) { return m_linkHighlights[i]; }
215 208
216 void setScrollableArea(ScrollableArea*); 209 void setScrollableArea(ScrollableArea*);
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 311
319 OwnPtr<OpaqueRectTrackingContentLayerDelegate> m_opaqueRectTrackingContentLa yerDelegate; 312 OwnPtr<OpaqueRectTrackingContentLayerDelegate> m_opaqueRectTrackingContentLa yerDelegate;
320 313
321 ScrollableArea* m_scrollableArea; 314 ScrollableArea* m_scrollableArea;
322 GraphicsLayerDebugInfo m_debugInfo; 315 GraphicsLayerDebugInfo m_debugInfo;
323 int m_3dRenderingContext; 316 int m_3dRenderingContext;
324 }; 317 };
325 318
326 } // namespace blink 319 } // namespace blink
327 320
328 #ifndef NDEBUG
329 // Outside the WebCore namespace for ease of invocation from gdb.
330 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*);
331 #endif
332
333 #endif // SKY_ENGINE_PLATFORM_GRAPHICS_GRAPHICSLAYER_H_ 321 #endif // SKY_ENGINE_PLATFORM_GRAPHICS_GRAPHICSLAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698