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

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

Issue 1238123004: Slimming Paint phase 2 compositing algorithm plumbing & skeleton display list API. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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
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 21 matching lines...) Expand all
32 #include "platform/geometry/FloatPoint3D.h" 32 #include "platform/geometry/FloatPoint3D.h"
33 #include "platform/geometry/FloatSize.h" 33 #include "platform/geometry/FloatSize.h"
34 #include "platform/geometry/IntRect.h" 34 #include "platform/geometry/IntRect.h"
35 #include "platform/graphics/Color.h" 35 #include "platform/graphics/Color.h"
36 #include "platform/graphics/ContentLayerDelegate.h" 36 #include "platform/graphics/ContentLayerDelegate.h"
37 #include "platform/graphics/GraphicsLayerClient.h" 37 #include "platform/graphics/GraphicsLayerClient.h"
38 #include "platform/graphics/GraphicsLayerDebugInfo.h" 38 #include "platform/graphics/GraphicsLayerDebugInfo.h"
39 #include "platform/graphics/PaintInvalidationReason.h" 39 #include "platform/graphics/PaintInvalidationReason.h"
40 #include "platform/graphics/filters/FilterOperations.h" 40 #include "platform/graphics/filters/FilterOperations.h"
41 #include "platform/graphics/paint/DisplayItemClient.h" 41 #include "platform/graphics/paint/DisplayItemClient.h"
42 #include "platform/graphics/paint/DisplayItemList.h"
43 #include "platform/graphics/paint/DisplayItemTransformTree.h"
44 #include "platform/graphics/paint/DisplayList.h"
42 #include "platform/transforms/TransformationMatrix.h" 45 #include "platform/transforms/TransformationMatrix.h"
43 #include "public/platform/WebCompositorAnimationDelegate.h" 46 #include "public/platform/WebCompositorAnimationDelegate.h"
44 #include "public/platform/WebContentLayer.h" 47 #include "public/platform/WebContentLayer.h"
45 #include "public/platform/WebImageLayer.h" 48 #include "public/platform/WebImageLayer.h"
46 #include "public/platform/WebLayerClient.h" 49 #include "public/platform/WebLayerClient.h"
47 #include "public/platform/WebLayerScrollClient.h" 50 #include "public/platform/WebLayerScrollClient.h"
48 #include "public/platform/WebNinePatchLayer.h" 51 #include "public/platform/WebNinePatchLayer.h"
49 #include "public/platform/WebScrollBlocksOn.h" 52 #include "public/platform/WebScrollBlocksOn.h"
50 #include "third_party/skia/include/core/SkPaint.h" 53 #include "third_party/skia/include/core/SkPaint.h"
51 #include "wtf/OwnPtr.h" 54 #include "wtf/OwnPtr.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 DoubleSize offsetDoubleFromLayoutObject() const { return m_offsetFromLayoutO bject; } 144 DoubleSize offsetDoubleFromLayoutObject() const { return m_offsetFromLayoutO bject; }
142 void setOffsetDoubleFromLayoutObject(const DoubleSize&, ShouldSetNeedsDispla y = SetNeedsDisplay); 145 void setOffsetDoubleFromLayoutObject(const DoubleSize&, ShouldSetNeedsDispla y = SetNeedsDisplay);
143 146
144 // The position of the layer (the location of its top-left corner in its par ent) 147 // The position of the layer (the location of its top-left corner in its par ent)
145 const FloatPoint& position() const { return m_position; } 148 const FloatPoint& position() const { return m_position; }
146 void setPosition(const FloatPoint&); 149 void setPosition(const FloatPoint&);
147 150
148 const FloatPoint3D& transformOrigin() const { return m_transformOrigin; } 151 const FloatPoint3D& transformOrigin() const { return m_transformOrigin; }
149 void setTransformOrigin(const FloatPoint3D&); 152 void setTransformOrigin(const FloatPoint3D&);
150 153
154 void setTransformTree(PassOwnPtr<const DisplayItemTransformTree>);
155 const DisplayItemTransformTree* transformTree() const override;
156
157 const DisplayList* displayList() const override;
158 void setDisplayList(PassOwnPtr<DisplayList>);
159
151 // The size of the layer. 160 // The size of the layer.
152 const FloatSize& size() const { return m_size; } 161 const FloatSize& size() const { return m_size; }
153 void setSize(const FloatSize&); 162 void setSize(const FloatSize&);
154 163
155 const TransformationMatrix& transform() const { return m_transform; } 164 const TransformationMatrix& transform() const { return m_transform; }
156 void setTransform(const TransformationMatrix&); 165 void setTransform(const TransformationMatrix&);
157 void setShouldFlattenTransform(bool); 166 void setShouldFlattenTransform(bool);
158 void setRenderingContext(int id); 167 void setRenderingContext(int id);
159 void setMasksToBounds(bool); 168 void setMasksToBounds(bool);
160 169
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 void setScrollableArea(ScrollableArea*, bool isViewport); 252 void setScrollableArea(ScrollableArea*, bool isViewport);
244 ScrollableArea* scrollableArea() const { return m_scrollableArea; } 253 ScrollableArea* scrollableArea() const { return m_scrollableArea; }
245 254
246 WebContentLayer* contentLayer() const { return m_layer.get(); } 255 WebContentLayer* contentLayer() const { return m_layer.get(); }
247 256
248 static void registerContentsLayer(WebLayer*); 257 static void registerContentsLayer(WebLayer*);
249 static void unregisterContentsLayer(WebLayer*); 258 static void unregisterContentsLayer(WebLayer*);
250 259
251 // GraphicsContextPainter implementation. 260 // GraphicsContextPainter implementation.
252 void paint(GraphicsContext&, const IntRect& clip) override; 261 void paint(GraphicsContext&, const IntRect& clip) override;
262 void paint(GraphicsContext&);
253 263
254 // WebCompositorAnimationDelegate implementation. 264 // WebCompositorAnimationDelegate implementation.
255 void notifyAnimationStarted(double monotonicTime, int group) override; 265 void notifyAnimationStarted(double monotonicTime, int group) override;
256 void notifyAnimationFinished(double monotonicTime, int group) override; 266 void notifyAnimationFinished(double monotonicTime, int group) override;
257 267
258 // WebLayerScrollClient implementation. 268 // WebLayerScrollClient implementation.
259 void didScroll() override; 269 void didScroll() override;
260 270
261 DisplayItemList* displayItemList() override; 271 DisplayItemList* displayItemList() override;
262 272
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 373
364 Vector<LinkHighlightClient*> m_linkHighlights; 374 Vector<LinkHighlightClient*> m_linkHighlights;
365 375
366 OwnPtr<ContentLayerDelegate> m_contentLayerDelegate; 376 OwnPtr<ContentLayerDelegate> m_contentLayerDelegate;
367 377
368 ScrollableArea* m_scrollableArea; 378 ScrollableArea* m_scrollableArea;
369 GraphicsLayerDebugInfo m_debugInfo; 379 GraphicsLayerDebugInfo m_debugInfo;
370 int m_3dRenderingContext; 380 int m_3dRenderingContext;
371 381
372 OwnPtr<DisplayItemList> m_displayItemList; 382 OwnPtr<DisplayItemList> m_displayItemList;
383 OwnPtr<const DisplayItemTransformTree> m_transformTree;
384 OwnPtr<const DisplayList> m_displayList;
373 }; 385 };
374 386
375 } // namespace blink 387 } // namespace blink
376 388
377 #ifndef NDEBUG 389 #ifndef NDEBUG
378 // Outside the blink namespace for ease of invocation from gdb. 390 // Outside the blink namespace for ease of invocation from gdb.
379 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); 391 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*);
380 #endif 392 #endif
381 393
382 #endif // GraphicsLayer_h 394 #endif // GraphicsLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698