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

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

Issue 2383323002: [SPv2] Introduce an option to output the GraphicsLayer tree as a flat layer list. (Closed)
Patch Set: none Created 4 years, 2 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 void updateLayerIsDrawable(); 283 void updateLayerIsDrawable();
284 void updateContentsRect(); 284 void updateContentsRect();
285 285
286 void setContentsTo(WebLayer*); 286 void setContentsTo(WebLayer*);
287 void setupContentsLayer(WebLayer*); 287 void setupContentsLayer(WebLayer*);
288 void clearContentsLayerIfUnregistered(); 288 void clearContentsLayerIfUnregistered();
289 WebLayer* contentsLayerIfRegistered(); 289 WebLayer* contentsLayerIfRegistered();
290 290
291 typedef HashMap<int, int> RenderingContextMap; 291 typedef HashMap<int, int> RenderingContextMap;
292 std::unique_ptr<JSONObject> layerTreeAsJSONInternal(LayerTreeFlags, Renderin gContextMap&) const; 292 std::unique_ptr<JSONObject> layerTreeAsJSONInternal(LayerTreeFlags, Renderin gContextMap&) const;
293 // Outputs the layer tree rooted at |this| as a JSON array, in paint order.
294 void layersAsJSONArray(LayerTreeFlags, RenderingContextMap&, JSONArray*) con st;
295 std::unique_ptr<JSONObject> layerAsJSONInternal(LayerTreeFlags, RenderingCon textMap&) const;
293 296
294 sk_sp<SkPicture> capturePicture(); 297 sk_sp<SkPicture> capturePicture();
295 void checkPaintUnderInvalidations(const SkPicture&); 298 void checkPaintUnderInvalidations(const SkPicture&);
296 299
297 GraphicsLayerClient* m_client; 300 GraphicsLayerClient* m_client;
298 301
299 // Offset from the owning layoutObject 302 // Offset from the owning layoutObject
300 DoubleSize m_offsetFromLayoutObject; 303 DoubleSize m_offsetFromLayoutObject;
301 304
302 // Position is relative to the parent GraphicsLayer 305 // Position is relative to the parent GraphicsLayer
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 }; 364 };
362 365
363 } // namespace blink 366 } // namespace blink
364 367
365 #ifndef NDEBUG 368 #ifndef NDEBUG
366 // Outside the blink namespace for ease of invocation from gdb. 369 // Outside the blink namespace for ease of invocation from gdb.
367 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); 370 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*);
368 #endif 371 #endif
369 372
370 #endif // GraphicsLayer_h 373 #endif // GraphicsLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698