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_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <vector> | 10 #include <vector> |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 // Flags for the next ViewHostMsg_UpdateRect message. | 404 // Flags for the next ViewHostMsg_UpdateRect message. |
405 int next_paint_flags_; | 405 int next_paint_flags_; |
406 | 406 |
407 // Filtered time per frame based on UpdateRect messages. | 407 // Filtered time per frame based on UpdateRect messages. |
408 float filtered_time_per_frame_; | 408 float filtered_time_per_frame_; |
409 | 409 |
410 // True if we are expecting an UpdateRect_ACK message (i.e., that a | 410 // True if we are expecting an UpdateRect_ACK message (i.e., that a |
411 // UpdateRect message has been sent). | 411 // UpdateRect message has been sent). |
412 bool update_reply_pending_; | 412 bool update_reply_pending_; |
413 | 413 |
| 414 // True if we need to send an UpdateRect message to notify the browser about |
| 415 // an already-completed auto-resize. |
| 416 bool need_update_rect_for_auto_resize_; |
| 417 |
414 // True if the underlying graphics context supports asynchronous swap. | 418 // True if the underlying graphics context supports asynchronous swap. |
415 // Cached on the RenderWidget because determining support is costly. | 419 // Cached on the RenderWidget because determining support is costly. |
416 bool using_asynchronous_swapbuffers_; | 420 bool using_asynchronous_swapbuffers_; |
417 | 421 |
418 // Number of OnSwapBuffersComplete we are expecting. Incremented each time | 422 // Number of OnSwapBuffersComplete we are expecting. Incremented each time |
419 // WebWidget::composite has been been performed when the RenderWidget subclass | 423 // WebWidget::composite has been been performed when the RenderWidget subclass |
420 // SupportsAsynchronousSwapBuffers. Decremented in OnSwapBuffers. Will block | 424 // SupportsAsynchronousSwapBuffers. Decremented in OnSwapBuffers. Will block |
421 // rendering. | 425 // rendering. |
422 int num_swapbuffers_complete_pending_; | 426 int num_swapbuffers_complete_pending_; |
423 | 427 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 // Set to true if we should invert all pixels. | 523 // Set to true if we should invert all pixels. |
520 bool invert_; | 524 bool invert_; |
521 | 525 |
522 // The Skia paint object for inverting. | 526 // The Skia paint object for inverting. |
523 scoped_ptr<SkPaint> invert_paint_; | 527 scoped_ptr<SkPaint> invert_paint_; |
524 | 528 |
525 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 529 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
526 }; | 530 }; |
527 | 531 |
528 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 532 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |