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

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

Issue 11475017: Revert 171569 as it broke some browser_tests on win_aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 // base::TimeTicks::HighResNow. Using the non-high res timer will result in 390 // base::TimeTicks::HighResNow. Using the non-high res timer will result in
391 // incorrect synchronization across processes. 391 // incorrect synchronization across processes.
392 virtual void UpdateVSyncParameters(base::TimeTicks timebase, 392 virtual void UpdateVSyncParameters(base::TimeTicks timebase,
393 base::TimeDelta interval); 393 base::TimeDelta interval);
394 394
395 // Called by the view in response to AcceleratedSurfaceBuffersSwapped or 395 // Called by the view in response to AcceleratedSurfaceBuffersSwapped or
396 // AcceleratedSurfacePostSubBuffer. 396 // AcceleratedSurfacePostSubBuffer.
397 static void AcknowledgeBufferPresent( 397 static void AcknowledgeBufferPresent(
398 int32 route_id, 398 int32 route_id,
399 int gpu_host_id, 399 int gpu_host_id,
400 uint64 surface_handle, 400 bool presented,
401 uint32 sync_point); 401 uint32 sync_point);
402 402
403 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for 403 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for
404 // platforms that support deferred GPU process descheduling. This does 404 // platforms that support deferred GPU process descheduling. This does
405 // nothing if the compositor thread is enabled. 405 // nothing if the compositor thread is enabled.
406 // TODO(jbates) Once the compositor thread is always on, this can be removed. 406 // TODO(jbates) Once the compositor thread is always on, this can be removed.
407 void AcknowledgeSwapBuffersToRenderer(); 407 void AcknowledgeSwapBuffersToRenderer();
408 408
409 #if defined(USE_AURA) 409 #if defined(USE_AURA)
410 // Called by the view when the parent changes. If a parent isn't available, 410 // Called by the view when the parent changes. If a parent isn't available,
411 // NULL is used. 411 // NULL is used.
412 void ParentChanged(gfx::NativeViewId new_parent); 412 void ParentChanged(gfx::NativeViewId new_parent);
413
414 // Called by the view in response to visibility changes:
415 // 1. After the front surface is guarenteed to no longer be in use by the ui
416 // (protected false),
417 // 2. When the ui expects to have a valid front surface (protected true).
418 static void SendFrontSurfaceIsProtected(bool is_protected,
419 uint32 protection_state_id,
420 int32 route_id,
421 int gpu_host_id);
413 #endif 422 #endif
414 423
415 // Signals that the compositing surface was updated, e.g. after a lost context 424 // Signals that the compositing surface was updated, e.g. after a lost context
416 // event. 425 // event.
417 void CompositingSurfaceUpdated(); 426 void CompositingSurfaceUpdated();
418 427
419 void set_allow_privileged_mouse_lock(bool allow) { 428 void set_allow_privileged_mouse_lock(bool allow) {
420 allow_privileged_mouse_lock_ = allow; 429 allow_privileged_mouse_lock_ = allow;
421 } 430 }
422 431
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
880 #if defined(OS_WIN) 889 #if defined(OS_WIN)
881 std::list<HWND> dummy_windows_for_activation_; 890 std::list<HWND> dummy_windows_for_activation_;
882 #endif 891 #endif
883 892
884 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 893 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
885 }; 894 };
886 895
887 } // namespace content 896 } // namespace content
888 897
889 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 898 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.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