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

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

Issue 233093006: Stop disabling force_compositing_mode for background RenderViews. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: background: test Created 6 years, 8 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 | Annotate | Revision Log
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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 friend class RenderWidgetTest; 258 friend class RenderWidgetTest;
259 259
260 enum ResizeAck { 260 enum ResizeAck {
261 SEND_RESIZE_ACK, 261 SEND_RESIZE_ACK,
262 NO_RESIZE_ACK, 262 NO_RESIZE_ACK,
263 }; 263 };
264 264
265 RenderWidget(blink::WebPopupType popup_type, 265 RenderWidget(blink::WebPopupType popup_type,
266 const blink::WebScreenInfo& screen_info, 266 const blink::WebScreenInfo& screen_info,
267 bool swapped_out, 267 bool swapped_out,
268 bool hidden); 268 bool hidden,
269 bool background);
269 270
270 virtual ~RenderWidget(); 271 virtual ~RenderWidget();
271 272
272 // Initializes this view with the given opener. CompleteInit must be called 273 // Initializes this view with the given opener. CompleteInit must be called
273 // later. 274 // later.
274 bool Init(int32 opener_id); 275 bool Init(int32 opener_id);
275 276
276 // Called by Init and subclasses to perform initialization. 277 // Called by Init and subclasses to perform initialization.
277 bool DoInit(int32 opener_id, 278 bool DoInit(int32 opener_id,
278 blink::WebWidget* web_widget, 279 blink::WebWidget* web_widget,
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 // can be outstanding before we start throttling based on 614 // can be outstanding before we start throttling based on
614 // OnSwapBuffersComplete callback. 615 // OnSwapBuffersComplete callback.
615 static const int kMaxSwapBuffersPending = 2; 616 static const int kMaxSwapBuffersPending = 2;
616 617
617 // Set to true if we should ignore RenderWidget::Show calls. 618 // Set to true if we should ignore RenderWidget::Show calls.
618 bool did_show_; 619 bool did_show_;
619 620
620 // Indicates that we shouldn't bother generated paint events. 621 // Indicates that we shouldn't bother generated paint events.
621 bool is_hidden_; 622 bool is_hidden_;
622 623
624 // Indeicates that we run in the background and are never visible.
jam 2014/04/10 20:27:48 nit: spelling
danakj 2014/04/10 20:37:12 Done.
625 bool is_background_;
626
623 // Indicates that we are in fullscreen mode. 627 // Indicates that we are in fullscreen mode.
624 bool is_fullscreen_; 628 bool is_fullscreen_;
625 629
626 // Indicates that we should be repainted when restored. This flag is set to 630 // Indicates that we should be repainted when restored. This flag is set to
627 // true if we receive an invalidation / scroll event from webkit while our 631 // true if we receive an invalidation / scroll event from webkit while our
628 // is_hidden_ flag is set to true. This is used to force a repaint once we 632 // is_hidden_ flag is set to true. This is used to force a repaint once we
629 // restore to account for the fact that our host would not know about the 633 // restore to account for the fact that our host would not know about the
630 // invalidation / scroll event(s) from webkit while we are hidden. 634 // invalidation / scroll event(s) from webkit while we are hidden.
631 bool needs_repainting_on_restore_; 635 bool needs_repainting_on_restore_;
632 636
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 788
785 ui::MenuSourceType context_menu_source_type_; 789 ui::MenuSourceType context_menu_source_type_;
786 gfx::Point touch_editing_context_menu_location_; 790 gfx::Point touch_editing_context_menu_location_;
787 791
788 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 792 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
789 }; 793 };
790 794
791 } // namespace content 795 } // namespace content
792 796
793 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 797 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698