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

Side by Side Diff: sky/engine/public/platform/WebLayerTreeView.h

Issue 1229273004: Remove Animations and Transitions. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « sky/engine/public/platform/WebLayer.h ('k') | sky/engine/web/Sky.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google 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 * 7 *
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Sets the background color for the viewport. 72 // Sets the background color for the viewport.
73 virtual void setBackgroundColor(WebColor) = 0; 73 virtual void setBackgroundColor(WebColor) = 0;
74 74
75 // Sets the background transparency for the viewport. The default is 'false' . 75 // Sets the background transparency for the viewport. The default is 'false' .
76 virtual void setHasTransparentBackground(bool) = 0; 76 virtual void setHasTransparentBackground(bool) = 0;
77 77
78 // Sets the overhang gutter bitmap. 78 // Sets the overhang gutter bitmap.
79 virtual void setOverhangBitmap(const SkBitmap&) { } 79 virtual void setOverhangBitmap(const SkBitmap&) { }
80 80
81 // Sets whether this view is visible. In threaded mode, a view that is not v isible will not 81 // Sets whether this view is visible. In threaded mode, a view that is not v isible will not
82 // composite or trigger updateAnimations() or layout() calls until it become s visible. 82 // composite or trigger layout() calls until it becomes visible.
83 virtual void setVisible(bool) = 0; 83 virtual void setVisible(bool) = 0;
84 84
85 virtual void heuristicsForGpuRasterizationUpdated(bool) { } 85 virtual void heuristicsForGpuRasterizationUpdated(bool) { }
86 86
87 87
88 // Flow control and scheduling --------------------------------------- 88 // Flow control and scheduling ---------------------------------------
89 89
90 // Indicates that an animation needs to be updated.
91 virtual void setNeedsAnimate() = 0;
92
93 // Indicates whether a commit is pending. 90 // Indicates whether a commit is pending.
94 virtual bool commitRequested() const = 0; 91 virtual bool commitRequested() const = 0;
95 92
96 // Relays the end of a fling animation.
97 virtual void didStopFlinging() { }
98
99 // Blocks until the most recently composited frame has finished rendering on the GPU. 93 // Blocks until the most recently composited frame has finished rendering on the GPU.
100 // This can have a significant performance impact and should be used with ca re. 94 // This can have a significant performance impact and should be used with ca re.
101 virtual void finishAllRendering() = 0; 95 virtual void finishAllRendering() = 0;
102 96
103 // Prevents updates to layer tree from becoming visible. 97 // Prevents updates to layer tree from becoming visible.
104 virtual void setDeferCommits(bool deferCommits) { } 98 virtual void setDeferCommits(bool deferCommits) { }
105 99
106 // Identify key layers to the compositor when using the pinch virtual viewpo rt. 100 // Identify key layers to the compositor when using the pinch virtual viewpo rt.
107 virtual void registerViewportLayers( 101 virtual void registerViewportLayers(
108 const WebLayer* pageScaleLayerLayer, 102 const WebLayer* pageScaleLayerLayer,
(...skipping 16 matching lines...) Expand all
125 // Toggles the debug borders on layers 119 // Toggles the debug borders on layers
126 virtual void setShowDebugBorders(bool) { } 120 virtual void setShowDebugBorders(bool) { }
127 121
128 // Toggles scroll bottleneck rects on the HUD layer 122 // Toggles scroll bottleneck rects on the HUD layer
129 virtual void setShowScrollBottleneckRects(bool) { } 123 virtual void setShowScrollBottleneckRects(bool) { }
130 }; 124 };
131 125
132 } // namespace blink 126 } // namespace blink
133 127
134 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBLAYERTREEVIEW_H_ 128 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBLAYERTREEVIEW_H_
OLDNEW
« no previous file with comments | « sky/engine/public/platform/WebLayer.h ('k') | sky/engine/web/Sky.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698