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

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

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: Storing the list of thumbnail callbacks, so that we can issue them upon RWHVA destruction. Created 8 years, 4 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 #include "content/browser/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1901 matching lines...) Expand 10 before | Expand all | Expand 10 after
1912 switches::kEnableThreadedCompositing); 1912 switches::kEnableThreadedCompositing);
1913 bool has_disable = CommandLine::ForCurrentProcess()->HasSwitch( 1913 bool has_disable = CommandLine::ForCurrentProcess()->HasSwitch(
1914 switches::kDisableThreadedCompositing); 1914 switches::kDisableThreadedCompositing);
1915 DCHECK(!is_thread_trial || !has_disable); 1915 DCHECK(!is_thread_trial || !has_disable);
1916 bool enable_threaded_compositing = 1916 bool enable_threaded_compositing =
1917 is_thread_trial || (has_enable && !has_disable); 1917 is_thread_trial || (has_enable && !has_disable);
1918 if (!enable_threaded_compositing) 1918 if (!enable_threaded_compositing)
1919 Send(new ViewMsg_SwapBuffers_ACK(routing_id_)); 1919 Send(new ViewMsg_SwapBuffers_ACK(routing_id_));
1920 } 1920 }
1921 1921
1922 #if defined(USE_AURA)
1923 // static
1924 void RenderWidgetHostImpl::SendFrontSurfaceIsProtected(
1925 bool is_protected,
1926 uint32 protection_state_id,
1927 int32 route_id,
1928 int gpu_host_id) {
1929 GpuProcessHostUIShim* ui_shim = GpuProcessHostUIShim::FromID(gpu_host_id);
1930 if (ui_shim) {
1931 ui_shim->Send(new AcceleratedSurfaceMsg_SetFrontSurfaceIsProtected(
1932 route_id, is_protected, protection_state_id));
1933 }
1934 }
1935 #endif
1936
1922 void RenderWidgetHostImpl::DelayedAutoResized() { 1937 void RenderWidgetHostImpl::DelayedAutoResized() {
1923 gfx::Size new_size = new_auto_size_; 1938 gfx::Size new_size = new_auto_size_;
1924 // Clear the new_auto_size_ since the empty value is used as a flag to 1939 // Clear the new_auto_size_ since the empty value is used as a flag to
1925 // indicate that no callback is in progress (i.e. without this line 1940 // indicate that no callback is in progress (i.e. without this line
1926 // DelayedAutoResized will not get called again). 1941 // DelayedAutoResized will not get called again).
1927 new_auto_size_.SetSize(0, 0); 1942 new_auto_size_.SetSize(0, 0);
1928 if (!should_auto_resize_) 1943 if (!should_auto_resize_)
1929 return; 1944 return;
1930 1945
1931 OnRenderAutoResized(new_size); 1946 OnRenderAutoResized(new_size);
1932 } 1947 }
1933 1948
1934 } // namespace content 1949 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/browser/renderer_host/render_widget_host_view_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698