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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 // Relative to the upper-left corner of the screen. | 316 // Relative to the upper-left corner of the screen. |
317 gfx::Point unlocked_global_mouse_position_; | 317 gfx::Point unlocked_global_mouse_position_; |
318 // Last cursor position relative to screen. Used to compute movementX/Y. | 318 // Last cursor position relative to screen. Used to compute movementX/Y. |
319 gfx::Point global_mouse_position_; | 319 gfx::Point global_mouse_position_; |
320 // In mouse locked mode, we syntheticaly move the mouse cursor to the center | 320 // In mouse locked mode, we syntheticaly move the mouse cursor to the center |
321 // of the window when it reaches the window borders to avoid it going outside. | 321 // of the window when it reaches the window borders to avoid it going outside. |
322 // This flag is used to differentiate between these synthetic mouse move | 322 // This flag is used to differentiate between these synthetic mouse move |
323 // events vs. normal mouse move events. | 323 // events vs. normal mouse move events. |
324 bool synthetic_move_sent_; | 324 bool synthetic_move_sent_; |
325 | 325 |
326 // Signals we need to switch off the external texture as soon as the software | 326 // Signals that the accelerated compositing has been turned on or off. |
327 // backing store is updated. | 327 // This is used to signal to turn off the external texture as soon as the |
328 bool needs_update_texture_; | 328 // software backing store is updated. |
| 329 bool accelerated_compositing_state_changed_; |
329 | 330 |
330 // Used to prevent further resizes while a resize is pending. | 331 // Used to prevent further resizes while a resize is pending. |
331 class ResizeLock; | 332 class ResizeLock; |
332 // These locks are the ones waiting for a texture of the right size to come | 333 // These locks are the ones waiting for a texture of the right size to come |
333 // back from the renderer/GPU process. | 334 // back from the renderer/GPU process. |
334 std::vector<linked_ptr<ResizeLock> > resize_locks_; | 335 std::vector<linked_ptr<ResizeLock> > resize_locks_; |
335 // These locks are the ones waiting for a frame to be drawn. | 336 // These locks are the ones waiting for a frame to be drawn. |
336 std::vector<linked_ptr<ResizeLock> > locks_pending_draw_; | 337 std::vector<linked_ptr<ResizeLock> > locks_pending_draw_; |
337 | 338 |
338 // This lock is for waiting for a front surface to become available to draw. | 339 // This lock is for waiting for a front surface to become available to draw. |
339 scoped_refptr<aura::CompositorLock> released_front_lock_; | 340 scoped_refptr<aura::CompositorLock> released_front_lock_; |
340 | 341 |
341 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 342 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
342 }; | 343 }; |
343 | 344 |
344 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 345 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |