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

Side by Side Diff: Source/core/rendering/compositing/RenderLayerCompositor.h

Issue 308183002: Made root translation layer the root when using pinch virtual viewport. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed unit test Created 6 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 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 // Whether the layer could ever be composited. 186 // Whether the layer could ever be composited.
187 bool canBeComposited(const RenderLayer*) const; 187 bool canBeComposited(const RenderLayer*) const;
188 188
189 // FIXME: Move allocateOrClearCompositedLayerMapping to CompositingLayerAssi gner once we've fixed 189 // FIXME: Move allocateOrClearCompositedLayerMapping to CompositingLayerAssi gner once we've fixed
190 // the compositing chicken/egg issues. 190 // the compositing chicken/egg issues.
191 bool allocateOrClearCompositedLayerMapping(RenderLayer*, CompositingStateTra nsitionType compositedLayerUpdate); 191 bool allocateOrClearCompositedLayerMapping(RenderLayer*, CompositingStateTra nsitionType compositedLayerUpdate);
192 192
193 void updateDirectCompositingReasons(RenderLayer*); 193 void updateDirectCompositingReasons(RenderLayer*);
194 194
195 void setOverlayLayer(GraphicsLayer*);
196
195 private: 197 private:
196 class OverlapMap; 198 class OverlapMap;
197 199
198 void assertNoUnresolvedDirtyBits(); 200 void assertNoUnresolvedDirtyBits();
199 201
200 // Make updates to the layer based on viewport-constrained properties such a s position:fixed. This can in turn affect 202 // Make updates to the layer based on viewport-constrained properties such a s position:fixed. This can in turn affect
201 // compositing. 203 // compositing.
202 bool updateLayerIfViewportConstrained(RenderLayer*); 204 bool updateLayerIfViewportConstrained(RenderLayer*);
203 205
204 // GraphicsLayerClient implementation 206 // GraphicsLayerClient implementation
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar; 289 OwnPtr<GraphicsLayer> m_layerForVerticalScrollbar;
288 OwnPtr<GraphicsLayer> m_layerForScrollCorner; 290 OwnPtr<GraphicsLayer> m_layerForScrollCorner;
289 #if USE(RUBBER_BANDING) 291 #if USE(RUBBER_BANDING)
290 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; 292 OwnPtr<GraphicsLayer> m_layerForOverhangShadow;
291 #endif 293 #endif
292 }; 294 };
293 295
294 } // namespace WebCore 296 } // namespace WebCore
295 297
296 #endif // RenderLayerCompositor_h 298 #endif // RenderLayerCompositor_h
OLDNEW
« no previous file with comments | « Source/core/frame/PinchViewport.cpp ('k') | Source/core/rendering/compositing/RenderLayerCompositor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698