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

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

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 3 years, 12 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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 std::unique_ptr<JSONObject> layerTreeAsJSONInternal( 327 std::unique_ptr<JSONObject> layerTreeAsJSONInternal(
328 LayerTreeFlags, 328 LayerTreeFlags,
329 RenderingContextMap&) const; 329 RenderingContextMap&) const;
330 // Outputs the layer tree rooted at |this| as a JSON array, in paint order. 330 // Outputs the layer tree rooted at |this| as a JSON array, in paint order.
331 void layersAsJSONArray(LayerTreeFlags, 331 void layersAsJSONArray(LayerTreeFlags,
332 RenderingContextMap&, 332 RenderingContextMap&,
333 JSONArray*) const; 333 JSONArray*) const;
334 std::unique_ptr<JSONObject> layerAsJSONInternal(LayerTreeFlags, 334 std::unique_ptr<JSONObject> layerAsJSONInternal(LayerTreeFlags,
335 RenderingContextMap&) const; 335 RenderingContextMap&) const;
336 336
337 sk_sp<SkPicture> capturePicture(); 337 sk_sp<CdlPicture> capturePicture();
338 void checkPaintUnderInvalidations(const SkPicture&); 338 void checkPaintUnderInvalidations(const CdlPicture&);
339 339
340 GraphicsLayerClient* m_client; 340 GraphicsLayerClient* m_client;
341 341
342 // Offset from the owning layoutObject 342 // Offset from the owning layoutObject
343 DoubleSize m_offsetFromLayoutObject; 343 DoubleSize m_offsetFromLayoutObject;
344 344
345 // Position is relative to the parent GraphicsLayer 345 // Position is relative to the parent GraphicsLayer
346 FloatPoint m_position; 346 FloatPoint m_position;
347 FloatSize m_size; 347 FloatSize m_size;
348 348
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 }; 408 };
409 409
410 } // namespace blink 410 } // namespace blink
411 411
412 #ifndef NDEBUG 412 #ifndef NDEBUG
413 // Outside the blink namespace for ease of invocation from gdb. 413 // Outside the blink namespace for ease of invocation from gdb.
414 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); 414 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*);
415 #endif 415 #endif
416 416
417 #endif // GraphicsLayer_h 417 #endif // GraphicsLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698