OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_MAC_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(__OBJC__) | 9 #if defined(__OBJC__) |
10 | 10 |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 // paint requests by expanding the invalid rect rather than actually painting. | 324 // paint requests by expanding the invalid rect rather than actually painting. |
325 bool about_to_validate_and_paint_; | 325 bool about_to_validate_and_paint_; |
326 | 326 |
327 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; | 327 scoped_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; |
328 | 328 |
329 // This is true when we have already scheduled a call to | 329 // This is true when we have already scheduled a call to |
330 // |-callSetNeedsDisplayInRect:| but it has not been fulfilled yet. Used to | 330 // |-callSetNeedsDisplayInRect:| but it has not been fulfilled yet. Used to |
331 // prevent us from scheduling multiple calls. | 331 // prevent us from scheduling multiple calls. |
332 bool call_set_needs_display_in_rect_pending_; | 332 bool call_set_needs_display_in_rect_pending_; |
333 | 333 |
| 334 // Whether last rendered frame was accelerated. |
| 335 bool last_frame_was_accelerated_; |
| 336 |
334 // The invalid rect that needs to be painted by callSetNeedsDisplayInRect. | 337 // The invalid rect that needs to be painted by callSetNeedsDisplayInRect. |
335 // This value is only meaningful when | 338 // This value is only meaningful when |
336 // |call_set_needs_display_in_rect_pending_| is true. | 339 // |call_set_needs_display_in_rect_pending_| is true. |
337 NSRect invalid_rect_; | 340 NSRect invalid_rect_; |
338 | 341 |
339 // The time at which this view started displaying white pixels as a result of | 342 // The time at which this view started displaying white pixels as a result of |
340 // not having anything to paint (empty backing store from renderer). This | 343 // not having anything to paint (empty backing store from renderer). This |
341 // value returns true for is_null() if we are not recording whiteout times. | 344 // value returns true for is_null() if we are not recording whiteout times. |
342 base::TimeTicks whiteout_start_time_; | 345 base::TimeTicks whiteout_start_time_; |
343 | 346 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 | 419 |
417 class RenderWidgetHostView; | 420 class RenderWidgetHostView; |
418 class RenderWidgetHost; | 421 class RenderWidgetHost; |
419 | 422 |
420 namespace render_widget_host_view_mac { | 423 namespace render_widget_host_view_mac { |
421 CONTENT_EXPORT RenderWidgetHostView* CreateRenderWidgetHostView( | 424 CONTENT_EXPORT RenderWidgetHostView* CreateRenderWidgetHostView( |
422 RenderWidgetHost* widget); | 425 RenderWidgetHost* widget); |
423 } | 426 } |
424 | 427 |
425 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 428 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |