OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_ | 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_ |
6 #define UI_COMPOSITOR_COMPOSITOR_H_ | 6 #define UI_COMPOSITOR_COMPOSITOR_H_ |
7 | 7 |
8 #include "base/hash_tables.h" | 8 #include "base/hash_tables.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 void OnSwapBuffersComplete(); | 204 void OnSwapBuffersComplete(); |
205 | 205 |
206 // Signals swap has aborted (e.g. lost context). | 206 // Signals swap has aborted (e.g. lost context). |
207 void OnSwapBuffersAborted(); | 207 void OnSwapBuffersAborted(); |
208 | 208 |
209 // WebLayerTreeViewClient implementation. | 209 // WebLayerTreeViewClient implementation. |
210 virtual void updateAnimations(double frameBeginTime); | 210 virtual void updateAnimations(double frameBeginTime); |
211 virtual void layout(); | 211 virtual void layout(); |
212 virtual void applyScrollAndScale(const WebKit::WebSize& scrollDelta, | 212 virtual void applyScrollAndScale(const WebKit::WebSize& scrollDelta, |
213 float scaleFactor); | 213 float scaleFactor); |
214 virtual WebKit::WebGraphicsContext3D* createContext3D(); | 214 virtual WebKit::WebCompositorOutputSurface* createOutputSurface(); |
215 virtual void didRebindGraphicsContext(bool success); | 215 virtual void didRecreateOutputSurface(bool success); |
216 virtual void didCommit(); | 216 virtual void didCommit(); |
217 virtual void didCommitAndDrawFrame(); | 217 virtual void didCommitAndDrawFrame(); |
218 virtual void didCompleteSwapBuffers(); | 218 virtual void didCompleteSwapBuffers(); |
219 virtual void scheduleComposite(); | 219 virtual void scheduleComposite(); |
220 | 220 |
221 int last_started_frame() { return last_started_frame_; } | 221 int last_started_frame() { return last_started_frame_; } |
222 int last_ended_frame() { return last_ended_frame_; } | 222 int last_ended_frame() { return last_ended_frame_; } |
223 | 223 |
224 private: | 224 private: |
225 friend class base::RefCounted<Compositor>; | 225 friend class base::RefCounted<Compositor>; |
(...skipping 30 matching lines...) Expand all Loading... |
256 int last_ended_frame_; | 256 int last_ended_frame_; |
257 | 257 |
258 bool disable_schedule_composite_; | 258 bool disable_schedule_composite_; |
259 | 259 |
260 DISALLOW_COPY_AND_ASSIGN(Compositor); | 260 DISALLOW_COPY_AND_ASSIGN(Compositor); |
261 }; | 261 }; |
262 | 262 |
263 } // namespace ui | 263 } // namespace ui |
264 | 264 |
265 #endif // UI_COMPOSITOR_COMPOSITOR_H_ | 265 #endif // UI_COMPOSITOR_COMPOSITOR_H_ |
OLD | NEW |