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

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"
42 #include "platform/transforms/TransformationMatrix.h" 44 #include "platform/transforms/TransformationMatrix.h"
43 #include "public/platform/WebCompositorAnimationDelegate.h" 45 #include "public/platform/WebCompositorAnimationDelegate.h"
44 #include "public/platform/WebContentLayer.h" 46 #include "public/platform/WebContentLayer.h"
45 #include "public/platform/WebImageLayer.h" 47 #include "public/platform/WebImageLayer.h"
46 #include "public/platform/WebLayerClient.h" 48 #include "public/platform/WebLayerClient.h"
47 #include "public/platform/WebLayerScrollClient.h" 49 #include "public/platform/WebLayerScrollClient.h"
48 #include "public/platform/WebNinePatchLayer.h" 50 #include "public/platform/WebNinePatchLayer.h"
49 #include "public/platform/WebScrollBlocksOn.h" 51 #include "public/platform/WebScrollBlocksOn.h"
50 #include "third_party/skia/include/core/SkPaint.h" 52 #include "third_party/skia/include/core/SkPaint.h"
51 #include "wtf/OwnPtr.h" 53 #include "wtf/OwnPtr.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 DoubleSize offsetDoubleFromLayoutObject() const { return m_offsetFromLayoutO bject; } 143 DoubleSize offsetDoubleFromLayoutObject() const { return m_offsetFromLayoutO bject; }
142 void setOffsetDoubleFromLayoutObject(const DoubleSize&, ShouldSetNeedsDispla y = SetNeedsDisplay); 144 void setOffsetDoubleFromLayoutObject(const DoubleSize&, ShouldSetNeedsDispla y = SetNeedsDisplay);
143 145
144 // The position of the layer (the location of its top-left corner in its par ent) 146 // The position of the layer (the location of its top-left corner in its par ent)
145 const FloatPoint& position() const { return m_position; } 147 const FloatPoint& position() const { return m_position; }
146 void setPosition(const FloatPoint&); 148 void setPosition(const FloatPoint&);
147 149
148 const FloatPoint3D& transformOrigin() const { return m_transformOrigin; } 150 const FloatPoint3D& transformOrigin() const { return m_transformOrigin; }
149 void setTransformOrigin(const FloatPoint3D&); 151 void setTransformOrigin(const FloatPoint3D&);
150 152
153 void setTransformTree(PassOwnPtr<DisplayItemTransformTree> transformTree) { m_transformTree = transformTree; }
154
151 // The size of the layer. 155 // The size of the layer.
152 const FloatSize& size() const { return m_size; } 156 const FloatSize& size() const { return m_size; }
153 void setSize(const FloatSize&); 157 void setSize(const FloatSize&);
154 158
155 const TransformationMatrix& transform() const { return m_transform; } 159 const TransformationMatrix& transform() const { return m_transform; }
156 void setTransform(const TransformationMatrix&); 160 void setTransform(const TransformationMatrix&);
157 void setShouldFlattenTransform(bool); 161 void setShouldFlattenTransform(bool);
158 void setRenderingContext(int id); 162 void setRenderingContext(int id);
159 void setMasksToBounds(bool); 163 void setMasksToBounds(bool);
160 164
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 void setScrollableArea(ScrollableArea*, bool isViewport); 247 void setScrollableArea(ScrollableArea*, bool isViewport);
244 ScrollableArea* scrollableArea() const { return m_scrollableArea; } 248 ScrollableArea* scrollableArea() const { return m_scrollableArea; }
245 249
246 WebContentLayer* contentLayer() const { return m_layer.get(); } 250 WebContentLayer* contentLayer() const { return m_layer.get(); }
247 251
248 static void registerContentsLayer(WebLayer*); 252 static void registerContentsLayer(WebLayer*);
249 static void unregisterContentsLayer(WebLayer*); 253 static void unregisterContentsLayer(WebLayer*);
250 254
251 // GraphicsContextPainter implementation. 255 // GraphicsContextPainter implementation.
252 void paint(GraphicsContext&, const IntRect& clip) override; 256 void paint(GraphicsContext&, const IntRect& clip) override;
257 void paint(GraphicsContext&);
253 258
254 // WebCompositorAnimationDelegate implementation. 259 // WebCompositorAnimationDelegate implementation.
255 void notifyAnimationStarted(double monotonicTime, int group) override; 260 void notifyAnimationStarted(double monotonicTime, int group) override;
256 void notifyAnimationFinished(double monotonicTime, int group) override; 261 void notifyAnimationFinished(double monotonicTime, int group) override;
257 262
258 // WebLayerScrollClient implementation. 263 // WebLayerScrollClient implementation.
259 void didScroll() override; 264 void didScroll() override;
260 265
261 DisplayItemList* displayItemList() override; 266 DisplayItemList* displayItemList() override;
262 267
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 368
364 Vector<LinkHighlightClient*> m_linkHighlights; 369 Vector<LinkHighlightClient*> m_linkHighlights;
365 370
366 OwnPtr<ContentLayerDelegate> m_contentLayerDelegate; 371 OwnPtr<ContentLayerDelegate> m_contentLayerDelegate;
367 372
368 ScrollableArea* m_scrollableArea; 373 ScrollableArea* m_scrollableArea;
369 GraphicsLayerDebugInfo m_debugInfo; 374 GraphicsLayerDebugInfo m_debugInfo;
370 int m_3dRenderingContext; 375 int m_3dRenderingContext;
371 376
372 OwnPtr<DisplayItemList> m_displayItemList; 377 OwnPtr<DisplayItemList> m_displayItemList;
378 OwnPtr<DisplayItemTransformTree> m_transformTree;
373 }; 379 };
374 380
375 } // namespace blink 381 } // namespace blink
376 382
377 #ifndef NDEBUG 383 #ifndef NDEBUG
378 // Outside the blink namespace for ease of invocation from gdb. 384 // Outside the blink namespace for ease of invocation from gdb.
379 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); 385 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*);
380 #endif 386 #endif
381 387
382 #endif // GraphicsLayer_h 388 #endif // GraphicsLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698