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

Side by Side Diff: sky/engine/core/rendering/compositing/RenderLayerCompositor.h

Issue 737793006: Add compile flag for enabling the compostior (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: cleanup Created 6 years, 1 month 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // composited RenderLayers) 72 // composited RenderLayers)
73 bool inCompositingMode() const; 73 bool inCompositingMode() const;
74 // FIXME: Replace all callers with inCompositingMdoe and remove this functio n. 74 // FIXME: Replace all callers with inCompositingMdoe and remove this functio n.
75 bool staleInCompositingMode() const; 75 bool staleInCompositingMode() const;
76 // This will make a compositing layer at the root automatically, and hook up to 76 // This will make a compositing layer at the root automatically, and hook up to
77 // the native view/window system. 77 // the native view/window system.
78 void setCompositingModeEnabled(bool); 78 void setCompositingModeEnabled(bool);
79 79
80 // Returns true if the accelerated compositing is enabled 80 // Returns true if the accelerated compositing is enabled
81 // FIXME(sky): Remove 81 // FIXME(sky): Remove
82 bool hasAcceleratedCompositing() const { return true; } 82 bool hasAcceleratedCompositing() const;
83 bool layerSquashingEnabled() const; 83 bool layerSquashingEnabled() const;
84 84
85 bool preferCompositingToLCDTextEnabled() const; 85 bool preferCompositingToLCDTextEnabled() const;
86 86
87 bool rootShouldAlwaysComposite() const; 87 bool rootShouldAlwaysComposite() const;
88 88
89 // Copy the accelerated compositing related flags from Settings 89 // Copy the accelerated compositing related flags from Settings
90 void updateAcceleratedCompositingSettings(); 90 void updateAcceleratedCompositingSettings();
91 91
92 // 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.
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 OwnPtr<GraphicsLayer> m_containerLayer; 210 OwnPtr<GraphicsLayer> m_containerLayer;
211 OwnPtr<GraphicsLayer> m_scrollLayer; 211 OwnPtr<GraphicsLayer> m_scrollLayer;
212 212
213 // Enclosing layer for overflow controls and the clipping layer 213 // Enclosing layer for overflow controls and the clipping layer
214 OwnPtr<GraphicsLayer> m_overflowControlsHostLayer; 214 OwnPtr<GraphicsLayer> m_overflowControlsHostLayer;
215 }; 215 };
216 216
217 } // namespace blink 217 } // namespace blink
218 218
219 #endif // RenderLayerCompositor_h 219 #endif // RenderLayerCompositor_h
OLDNEW
« no previous file with comments | « sky/engine/core/frame/FrameView.cpp ('k') | sky/engine/core/rendering/compositing/RenderLayerCompositor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698