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

Side by Side Diff: Source/WebCore/rendering/RenderLayerCompositor.h

Issue 13544008: Remove PlatformWidget references (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 * 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 209
210 #if ENABLE(VIDEO) 210 #if ENABLE(VIDEO)
211 // Use by RenderVideo to ask if it should try to use accelerated compositing . 211 // Use by RenderVideo to ask if it should try to use accelerated compositing .
212 bool canAccelerateVideoRendering(RenderVideo*) const; 212 bool canAccelerateVideoRendering(RenderVideo*) const;
213 #endif 213 #endif
214 214
215 // Walk the tree looking for layers with 3d transforms. Useful in case you n eed 215 // Walk the tree looking for layers with 3d transforms. Useful in case you n eed
216 // to know if there is non-affine content, e.g. for drawing into an image. 216 // to know if there is non-affine content, e.g. for drawing into an image.
217 bool has3DContent() const; 217 bool has3DContent() const;
218 218
219 // Most platforms connect compositing layer trees between iframes and their parent document.
220 // Some (currently just Mac) allow iframes to do their own compositing.
221 static bool allowsIndependentlyCompositedFrames(const FrameView*);
222 bool shouldPropagateCompositingToEnclosingFrame() const; 219 bool shouldPropagateCompositingToEnclosingFrame() const;
223 220
224 static RenderLayerCompositor* frameContentsCompositor(RenderPart*); 221 static RenderLayerCompositor* frameContentsCompositor(RenderPart*);
225 // Return true if the layers changed. 222 // Return true if the layers changed.
226 static bool parentFrameContentLayers(RenderPart*); 223 static bool parentFrameContentLayers(RenderPart*);
227 224
228 // Update the geometry of the layers used for clipping and scrolling in fram es. 225 // Update the geometry of the layers used for clipping and scrolling in fram es.
229 void frameViewDidChangeLocation(const IntPoint& contentsOffset); 226 void frameViewDidChangeLocation(const IntPoint& contentsOffset);
230 void frameViewDidChangeSize(); 227 void frameViewDidChangeSize();
231 void frameViewDidScroll(); 228 void frameViewDidScroll();
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 int m_secondaryCompositedLayerCount; // count of layers that have to be comp osited because of stacking or overlap. 444 int m_secondaryCompositedLayerCount; // count of layers that have to be comp osited because of stacking or overlap.
448 double m_obligatoryBackingStoreBytes; 445 double m_obligatoryBackingStoreBytes;
449 double m_secondaryBackingStoreBytes; 446 double m_secondaryBackingStoreBytes;
450 #endif 447 #endif
451 }; 448 };
452 449
453 450
454 } // namespace WebCore 451 } // namespace WebCore
455 452
456 #endif // RenderLayerCompositor_h 453 #endif // RenderLayerCompositor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698