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

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

Issue 2251303003: Implement position: sticky updates on compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup and add unit test for impl side sticky position update. Created 4 years, 3 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "platform/graphics/ImageOrientation.h" 42 #include "platform/graphics/ImageOrientation.h"
43 #include "platform/graphics/PaintInvalidationReason.h" 43 #include "platform/graphics/PaintInvalidationReason.h"
44 #include "platform/graphics/filters/FilterOperations.h" 44 #include "platform/graphics/filters/FilterOperations.h"
45 #include "platform/graphics/paint/DisplayItemClient.h" 45 #include "platform/graphics/paint/DisplayItemClient.h"
46 #include "platform/graphics/paint/PaintController.h" 46 #include "platform/graphics/paint/PaintController.h"
47 #include "platform/heap/Handle.h" 47 #include "platform/heap/Handle.h"
48 #include "platform/transforms/TransformationMatrix.h" 48 #include "platform/transforms/TransformationMatrix.h"
49 #include "public/platform/WebContentLayer.h" 49 #include "public/platform/WebContentLayer.h"
50 #include "public/platform/WebImageLayer.h" 50 #include "public/platform/WebImageLayer.h"
51 #include "public/platform/WebLayerScrollClient.h" 51 #include "public/platform/WebLayerScrollClient.h"
52 #include "public/platform/WebLayerStickyPositionConstraint.h"
52 #include "third_party/skia/include/core/SkFilterQuality.h" 53 #include "third_party/skia/include/core/SkFilterQuality.h"
53 #include "third_party/skia/include/core/SkRefCnt.h" 54 #include "third_party/skia/include/core/SkRefCnt.h"
54 #include "wtf/Vector.h" 55 #include "wtf/Vector.h"
55 #include <memory> 56 #include <memory>
56 57
57 namespace blink { 58 namespace blink {
58 59
59 class FloatRect; 60 class FloatRect;
60 class Image; 61 class Image;
61 class LinkHighlight; 62 class LinkHighlight;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 168
168 float opacity() const { return m_opacity; } 169 float opacity() const { return m_opacity; }
169 void setOpacity(float); 170 void setOpacity(float);
170 171
171 void setBlendMode(WebBlendMode); 172 void setBlendMode(WebBlendMode);
172 void setIsRootForIsolatedGroup(bool); 173 void setIsRootForIsolatedGroup(bool);
173 174
174 void setFilters(const FilterOperations&); 175 void setFilters(const FilterOperations&);
175 void setBackdropFilters(const FilterOperations&); 176 void setBackdropFilters(const FilterOperations&);
176 177
178 void setStickyPositionConstraint(const WebLayerStickyPositionConstraint&);
179
177 void setFilterQuality(SkFilterQuality); 180 void setFilterQuality(SkFilterQuality);
178 181
179 // Some GraphicsLayers paint only the foreground or the background content 182 // Some GraphicsLayers paint only the foreground or the background content
180 GraphicsLayerPaintingPhase paintingPhase() const { return m_paintingPhase; } 183 GraphicsLayerPaintingPhase paintingPhase() const { return m_paintingPhase; }
181 void setPaintingPhase(GraphicsLayerPaintingPhase); 184 void setPaintingPhase(GraphicsLayerPaintingPhase);
182 185
183 void setNeedsDisplay(); 186 void setNeedsDisplay();
184 // Mark the given rect (in layer coords) as needing display. Never goes deep . 187 // Mark the given rect (in layer coords) as needing display. Never goes deep .
185 void setNeedsDisplayInRect(const IntRect&, PaintInvalidationReason, const Di splayItemClient&); 188 void setNeedsDisplayInRect(const IntRect&, PaintInvalidationReason, const Di splayItemClient&);
186 189
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 }; 381 };
379 382
380 } // namespace blink 383 } // namespace blink
381 384
382 #ifndef NDEBUG 385 #ifndef NDEBUG
383 // Outside the blink namespace for ease of invocation from gdb. 386 // Outside the blink namespace for ease of invocation from gdb.
384 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); 387 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*);
385 #endif 388 #endif
386 389
387 #endif // GraphicsLayer_h 390 #endif // GraphicsLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698