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

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

Issue 785333002: Delete the Layer Squashing runtime feature. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 WTF_MAKE_FAST_ALLOCATED; 66 WTF_MAKE_FAST_ALLOCATED;
67 public: 67 public:
68 explicit RenderLayerCompositor(RenderView&); 68 explicit RenderLayerCompositor(RenderView&);
69 virtual ~RenderLayerCompositor(); 69 virtual ~RenderLayerCompositor();
70 70
71 void updateIfNeededRecursive(); 71 void updateIfNeededRecursive();
72 72
73 // Return true if this RenderView is in "compositing mode" (i.e. has one or more 73 // Return true if this RenderView is in "compositing mode" (i.e. has one or more
74 // composited RenderLayers) 74 // composited RenderLayers)
75 bool inCompositingMode() const; 75 bool inCompositingMode() const;
76 // FIXME: Replace all callers with inCompositingMdoe and remove this functio n. 76 // FIXME: Replace all callers with inCompositingMode and remove this functio n.
77 bool staleInCompositingMode() const; 77 bool staleInCompositingMode() const;
78 // This will make a compositing layer at the root automatically, and hook up to 78 // This will make a compositing layer at the root automatically, and hook up to
79 // the native view/window system. 79 // the native view/window system.
80 void setCompositingModeEnabled(bool); 80 void setCompositingModeEnabled(bool);
81 81
82 // Returns true if the accelerated compositing is enabled 82 // Returns true if the accelerated compositing is enabled
83 bool hasAcceleratedCompositing() const { return m_hasAcceleratedCompositing; } 83 bool hasAcceleratedCompositing() const { return m_hasAcceleratedCompositing; }
84 bool layerSquashingEnabled() const;
85 84
86 bool preferCompositingToLCDTextEnabled() const; 85 bool preferCompositingToLCDTextEnabled() const;
87 86
88 bool rootShouldAlwaysComposite() const; 87 bool rootShouldAlwaysComposite() const;
89 88
90 // Copy the accelerated compositing related flags from Settings 89 // Copy the accelerated compositing related flags from Settings
91 void updateAcceleratedCompositingSettings(); 90 void updateAcceleratedCompositingSettings();
92 91
93 // Used to indicate that a compositing update will be needed for the next fr ame that gets drawn. 92 // Used to indicate that a compositing update will be needed for the next fr ame that gets drawn.
94 void setNeedsCompositingUpdate(CompositingUpdateType); 93 void setNeedsCompositingUpdate(CompositingUpdateType);
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 #if USE(RUBBER_BANDING) 243 #if USE(RUBBER_BANDING)
245 OwnPtr<GraphicsLayer> m_layerForOverhangShadow; 244 OwnPtr<GraphicsLayer> m_layerForOverhangShadow;
246 #endif 245 #endif
247 246
248 bool m_inOverlayFullscreenVideo; 247 bool m_inOverlayFullscreenVideo;
249 }; 248 };
250 249
251 } // namespace blink 250 } // namespace blink
252 251
253 #endif // RenderLayerCompositor_h 252 #endif // RenderLayerCompositor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698