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

Side by Side Diff: content/browser/renderer_host/render_widget_host.h

Issue 9194005: gpu: reference target surfaces through a globally unique surface id. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix more tests Created 8 years, 11 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) 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_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 153
154 // Gets/Sets the View of this RenderWidgetHost. Can be NULL, e.g. if the 154 // Gets/Sets the View of this RenderWidgetHost. Can be NULL, e.g. if the
155 // RenderWidget is being destroyed or the render process crashed. You should 155 // RenderWidget is being destroyed or the render process crashed. You should
156 // never cache this pointer since it can become NULL if the renderer crashes, 156 // never cache this pointer since it can become NULL if the renderer crashes,
157 // instead you should always ask for it using the accessor. 157 // instead you should always ask for it using the accessor.
158 void SetView(RenderWidgetHostView* view); 158 void SetView(RenderWidgetHostView* view);
159 RenderWidgetHostView* view() const { return view_; } 159 RenderWidgetHostView* view() const { return view_; }
160 160
161 content::RenderProcessHost* process() const { return process_; } 161 content::RenderProcessHost* process() const { return process_; }
162 int routing_id() const { return routing_id_; } 162 int routing_id() const { return routing_id_; }
163 int surface_id() const { return surface_id_; }
163 bool renderer_accessible() { return renderer_accessible_; } 164 bool renderer_accessible() { return renderer_accessible_; }
164 165
165 bool empty() const { return current_size_.IsEmpty(); } 166 bool empty() const { return current_size_.IsEmpty(); }
166 167
167 // Returns the property bag for this widget, where callers can add extra data 168 // Returns the property bag for this widget, where callers can add extra data
168 // they may wish to associate with it. Returns a pointer rather than a 169 // they may wish to associate with it. Returns a pointer rather than a
169 // reference since the PropertyAccessors expect this. 170 // reference since the PropertyAccessors expect this.
170 const base::PropertyBag* property_bag() const { return &property_bag_; } 171 const base::PropertyBag* property_bag() const { return &property_bag_; }
171 base::PropertyBag* property_bag() { return &property_bag_; } 172 base::PropertyBag* property_bag() { return &property_bag_; }
172 173
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 // is guaranteed never to be NULL, but its channel may be NULL if the 648 // is guaranteed never to be NULL, but its channel may be NULL if the
648 // renderer crashed, so you must always check that. 649 // renderer crashed, so you must always check that.
649 content::RenderProcessHost* process_; 650 content::RenderProcessHost* process_;
650 651
651 // Stores random bits of data for others to associate with this object. 652 // Stores random bits of data for others to associate with this object.
652 base::PropertyBag property_bag_; 653 base::PropertyBag property_bag_;
653 654
654 // The ID of the corresponding object in the Renderer Instance. 655 // The ID of the corresponding object in the Renderer Instance.
655 int routing_id_; 656 int routing_id_;
656 657
658 // The ID of the surface corresponding to this render widget.
659 int surface_id_;
660
657 // Indicates whether a page is loading or not. 661 // Indicates whether a page is loading or not.
658 bool is_loading_; 662 bool is_loading_;
659 663
660 // Indicates whether a page is hidden or not. 664 // Indicates whether a page is hidden or not.
661 bool is_hidden_; 665 bool is_hidden_;
662 666
663 // True when a page is rendered directly via the GPU process. 667 // True when a page is rendered directly via the GPU process.
664 bool is_accelerated_compositing_active_; 668 bool is_accelerated_compositing_active_;
665 669
666 // Set if we are waiting for a repaint ack for the view. 670 // Set if we are waiting for a repaint ack for the view.
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 gfx::Point last_scroll_offset_; 803 gfx::Point last_scroll_offset_;
800 804
801 bool pending_mouse_lock_request_; 805 bool pending_mouse_lock_request_;
802 806
803 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; 807 base::WeakPtrFactory<RenderWidgetHost> weak_factory_;
804 808
805 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); 809 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost);
806 }; 810 };
807 811
808 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 812 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_helper.cc ('k') | content/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698