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

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

Issue 10052018: Drop frontbuffers with ui-use-gpu-process, synchronized with browser, decoupled from backbuffer dro… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // IPC::Channel::Listener 145 // IPC::Channel::Listener
146 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 146 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
147 147
148 // Sends a message to the corresponding object in the renderer. 148 // Sends a message to the corresponding object in the renderer.
149 virtual bool Send(IPC::Message* msg) OVERRIDE; 149 virtual bool Send(IPC::Message* msg) OVERRIDE;
150 150
151 // Called to notify the RenderWidget that it has been hidden or restored from 151 // Called to notify the RenderWidget that it has been hidden or restored from
152 // having been hidden. 152 // having been hidden.
153 void WasHidden(); 153 void WasHidden();
154 void WasRestored(); 154 void WasRestored();
155 bool IsVisible() const { return !is_hidden_; }
155 156
156 // Called to notify the RenderWidget that its associated native window got 157 // Called to notify the RenderWidget that its associated native window got
157 // focused. 158 // focused.
158 virtual void GotFocus(); 159 virtual void GotFocus();
159 160
160 // Tells the renderer it got/lost focus. 161 // Tells the renderer it got/lost focus.
161 void Focus(); 162 void Focus();
162 virtual void LostCapture(); 163 virtual void LostCapture();
163 164
164 // Sets whether the renderer should show controls in an active state. On all 165 // Sets whether the renderer should show controls in an active state. On all
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 350
350 // Called when the reponse to a pending mouse lock request has arrived. 351 // Called when the reponse to a pending mouse lock request has arrived.
351 // Returns true if |allowed| is true and the mouse has been successfully 352 // Returns true if |allowed| is true and the mouse has been successfully
352 // locked. 353 // locked.
353 bool GotResponseToLockMouseRequest(bool allowed); 354 bool GotResponseToLockMouseRequest(bool allowed);
354 355
355 // Called by the view in response to AcceleratedSurfaceBuffersSwapped. 356 // Called by the view in response to AcceleratedSurfaceBuffersSwapped.
356 static void AcknowledgeSwapBuffers(int32 route_id, int gpu_host_id); 357 static void AcknowledgeSwapBuffers(int32 route_id, int gpu_host_id);
357 static void AcknowledgePostSubBuffer(int32 route_id, int gpu_host_id); 358 static void AcknowledgePostSubBuffer(int32 route_id, int gpu_host_id);
358 359
360 #if defined(USE_AURA)
361 // Called by the view in response to visibility changes once the front surface
362 // is no longer in use by the ui (false), or when we expect to have a valid
363 // front surface for use by the ui (true).
364 static void SendFrontSurfaceIsProtected(bool is_protected,
365 uint32 protection_state_id,
366 int32 route_id,
367 int gpu_host_id);
368 #endif
369
359 // Signals that the compositing surface was updated, e.g. after a lost context 370 // Signals that the compositing surface was updated, e.g. after a lost context
360 // event. 371 // event.
361 void CompositingSurfaceUpdated(); 372 void CompositingSurfaceUpdated();
362 373
363 void set_allow_privileged_mouse_lock(bool allow) { 374 void set_allow_privileged_mouse_lock(bool allow) {
364 allow_privileged_mouse_lock_ = allow; 375 allow_privileged_mouse_lock_ = allow;
365 } 376 }
366 377
367 protected: 378 protected:
368 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE; 379 virtual RenderWidgetHostImpl* AsRenderWidgetHostImpl() OVERRIDE;
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 751 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
741 752
742 scoped_ptr<TapSuppressionController> tap_suppression_controller_; 753 scoped_ptr<TapSuppressionController> tap_suppression_controller_;
743 754
744 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 755 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
745 }; 756 };
746 757
747 } // namespace content 758 } // namespace content
748 759
749 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 760 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698