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

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

Issue 2929873002: Shifting layer position for sticky element to avoid passing unnessary variable to cc (Closed)
Patch Set: Bug fix Created 3 years, 6 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 float Opacity() const { return opacity_; } 176 float Opacity() const { return opacity_; }
177 void SetOpacity(float); 177 void SetOpacity(float);
178 178
179 void SetBlendMode(WebBlendMode); 179 void SetBlendMode(WebBlendMode);
180 void SetIsRootForIsolatedGroup(bool); 180 void SetIsRootForIsolatedGroup(bool);
181 181
182 void SetFilters(CompositorFilterOperations); 182 void SetFilters(CompositorFilterOperations);
183 void SetBackdropFilters(CompositorFilterOperations); 183 void SetBackdropFilters(CompositorFilterOperations);
184 184
185 void SetStickyPositionConstraint(const WebLayerStickyPositionConstraint&); 185 void SetStickyPositionConstraint(const WebLayerStickyPositionConstraint&);
186 void SetOffsetForStickyPosition(const WebSize&);
187 186
188 void SetFilterQuality(SkFilterQuality); 187 void SetFilterQuality(SkFilterQuality);
189 188
190 // Some GraphicsLayers paint only the foreground or the background content 189 // Some GraphicsLayers paint only the foreground or the background content
191 GraphicsLayerPaintingPhase PaintingPhase() const { return painting_phase_; } 190 GraphicsLayerPaintingPhase PaintingPhase() const { return painting_phase_; }
192 void SetPaintingPhase(GraphicsLayerPaintingPhase); 191 void SetPaintingPhase(GraphicsLayerPaintingPhase);
193 192
194 void SetNeedsDisplay(); 193 void SetNeedsDisplay();
195 // Mark the given rect (in layer coords) as needing display. Never goes deep. 194 // Mark the given rect (in layer coords) as needing display. Never goes deep.
196 void SetNeedsDisplayInRect(const IntRect&, 195 void SetNeedsDisplayInRect(const IntRect&,
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 395
397 } // namespace blink 396 } // namespace blink
398 397
399 #ifndef NDEBUG 398 #ifndef NDEBUG
400 // Outside the blink namespace for ease of invocation from gdb. 399 // Outside the blink namespace for ease of invocation from gdb.
401 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); 400 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*);
402 void PLATFORM_EXPORT showGraphicsLayers(const blink::GraphicsLayer*); 401 void PLATFORM_EXPORT showGraphicsLayers(const blink::GraphicsLayer*);
403 #endif 402 #endif
404 403
405 #endif // GraphicsLayer_h 404 #endif // GraphicsLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698