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

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

Issue 2147873003: cc: Dedup IPCs to return resources to client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 5 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_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 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 // Called when the reponse to a pending mouse lock request has arrived. 405 // Called when the reponse to a pending mouse lock request has arrived.
406 // Returns true if |allowed| is true and the mouse has been successfully 406 // Returns true if |allowed| is true and the mouse has been successfully
407 // locked. 407 // locked.
408 bool GotResponseToLockMouseRequest(bool allowed); 408 bool GotResponseToLockMouseRequest(bool allowed);
409 409
410 // Tells the RenderWidget about the latest vsync parameters. 410 // Tells the RenderWidget about the latest vsync parameters.
411 void UpdateVSyncParameters(base::TimeTicks timebase, 411 void UpdateVSyncParameters(base::TimeTicks timebase,
412 base::TimeDelta interval); 412 base::TimeDelta interval);
413 413
414 // Called by the view in response to OnSwapCompositorFrame. 414 // Called by the view in response to OnSwapCompositorFrame.
415 static void SendSwapCompositorFrameAck( 415 static void SendReclaimCompositorResources(
416 int32_t route_id, 416 int32_t route_id,
417 uint32_t output_surface_id, 417 uint32_t output_surface_id,
418 int renderer_host_id, 418 int renderer_host_id,
419 const cc::CompositorFrameAck& ack); 419 bool is_swap_ack,
420 420 const cc::ReturnedResourceArray& resources);
421 // Called by the view to return resources to the compositor.
422 static void SendReclaimCompositorResources(int32_t route_id,
423 uint32_t output_surface_id,
424 int renderer_host_id,
425 const cc::CompositorFrameAck& ack);
426 421
427 void set_allow_privileged_mouse_lock(bool allow) { 422 void set_allow_privileged_mouse_lock(bool allow) {
428 allow_privileged_mouse_lock_ = allow; 423 allow_privileged_mouse_lock_ = allow;
429 } 424 }
430 425
431 // Resets state variables related to tracking pending size and painting. 426 // Resets state variables related to tracking pending size and painting.
432 // 427 //
433 // We need to reset these flags when we want to repaint the contents of 428 // We need to reset these flags when we want to repaint the contents of
434 // browser plugin in this RWH. Resetting these flags will ensure we ignore 429 // browser plugin in this RWH. Resetting these flags will ensure we ignore
435 // any previous pending acks that are not relevant upon repaint. 430 // any previous pending acks that are not relevant upon repaint.
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 #endif 821 #endif
827 822
828 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 823 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
829 824
830 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 825 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
831 }; 826 };
832 827
833 } // namespace content 828 } // namespace content
834 829
835 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 830 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/delegated_frame_host.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698