Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Side by Side Diff: content/renderer/render_widget.h

Issue 12463007: Disable partial swaps for webview guest renderer until we can figure out how to do that properly. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comments Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 10
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 bool update_reply_pending_; 520 bool update_reply_pending_;
521 521
522 // True if we need to send an UpdateRect message to notify the browser about 522 // True if we need to send an UpdateRect message to notify the browser about
523 // an already-completed auto-resize. 523 // an already-completed auto-resize.
524 bool need_update_rect_for_auto_resize_; 524 bool need_update_rect_for_auto_resize_;
525 525
526 // True if the underlying graphics context supports asynchronous swap. 526 // True if the underlying graphics context supports asynchronous swap.
527 // Cached on the RenderWidget because determining support is costly. 527 // Cached on the RenderWidget because determining support is costly.
528 bool using_asynchronous_swapbuffers_; 528 bool using_asynchronous_swapbuffers_;
529 529
530 // Specifies whether partially swapping composited buffers is
531 // allowed for a renderer. Partial swaps will be used if they are both
532 // allowed and supported.
533 bool allow_partial_swap_;
534
530 // Number of OnSwapBuffersComplete we are expecting. Incremented each time 535 // Number of OnSwapBuffersComplete we are expecting. Incremented each time
531 // WebWidget::composite has been been performed when the RenderWidget subclass 536 // WebWidget::composite has been been performed when the RenderWidget subclass
532 // SupportsAsynchronousSwapBuffers. Decremented in OnSwapBuffers. Will block 537 // SupportsAsynchronousSwapBuffers. Decremented in OnSwapBuffers. Will block
533 // rendering. 538 // rendering.
534 int num_swapbuffers_complete_pending_; 539 int num_swapbuffers_complete_pending_;
535 540
536 // When accelerated rendering is on, is the maximum number of swapbuffers that 541 // When accelerated rendering is on, is the maximum number of swapbuffers that
537 // can be outstanding before we start throttling based on 542 // can be outstanding before we start throttling based on
538 // OnSwapBuffersComplete callback. 543 // OnSwapBuffersComplete callback.
539 static const int kMaxSwapBuffersPending = 2; 544 static const int kMaxSwapBuffersPending = 2;
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 666
662 // Specified whether the compositor will run in its own thread. 667 // Specified whether the compositor will run in its own thread.
663 bool is_threaded_compositing_enabled_; 668 bool is_threaded_compositing_enabled_;
664 669
665 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 670 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
666 }; 671 };
667 672
668 } // namespace content 673 } // namespace content
669 674
670 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 675 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698