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 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 string16 tooltip_; | 432 string16 tooltip_; |
433 | 433 |
434 // The scale factor of the display the renderer is currently on. | 434 // The scale factor of the display the renderer is currently on. |
435 float device_scale_factor_; | 435 float device_scale_factor_; |
436 | 436 |
437 std::vector<base::Closure> on_compositing_did_commit_callbacks_; | 437 std::vector<base::Closure> on_compositing_did_commit_callbacks_; |
438 | 438 |
439 // The current frontbuffer texture. | 439 // The current frontbuffer texture. |
440 scoped_refptr<ui::Texture> current_surface_; | 440 scoped_refptr<ui::Texture> current_surface_; |
441 | 441 |
| 442 // The current frontbuffer DIB. |
| 443 scoped_ptr<TransportDIB> current_dib_; |
| 444 |
442 // The damage in the previously presented buffer. | 445 // The damage in the previously presented buffer. |
443 SkRegion previous_damage_; | 446 SkRegion previous_damage_; |
444 | 447 |
445 // Pending damage from previous frames that we skipped. | 448 // Pending damage from previous frames that we skipped. |
446 SkRegion skipped_damage_; | 449 SkRegion skipped_damage_; |
447 | 450 |
448 // The size of the last frame that was swapped (even if we skipped it). | 451 // The size of the last frame that was swapped (even if we skipped it). |
449 // Used to determine when the skipped_damage_ needs to be reset due to | 452 // Used to determine when the skipped_damage_ needs to be reset due to |
450 // size changes between front- and backbuffer. | 453 // size changes between front- and backbuffer. |
451 gfx::Size last_swapped_surface_size_; | 454 gfx::Size last_swapped_surface_size_; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 #endif | 530 #endif |
528 | 531 |
529 base::TimeTicks last_draw_ended_; | 532 base::TimeTicks last_draw_ended_; |
530 | 533 |
531 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); | 534 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); |
532 }; | 535 }; |
533 | 536 |
534 } // namespace content | 537 } // namespace content |
535 | 538 |
536 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ | 539 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ |
OLD | NEW |