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

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

Issue 11194042: Implement TextureImageTransportSurface using texture mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: send SurfaceRel from Destroy(), hold GLContext ref for cleanup so surface is compatible Created 8 years, 1 month 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 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 // base::TimeTicks::HighResNow. Using the non-high res timer will result in 389 // base::TimeTicks::HighResNow. Using the non-high res timer will result in
390 // incorrect synchronization across processes. 390 // incorrect synchronization across processes.
391 virtual void UpdateVSyncParameters(base::TimeTicks timebase, 391 virtual void UpdateVSyncParameters(base::TimeTicks timebase,
392 base::TimeDelta interval); 392 base::TimeDelta interval);
393 393
394 // Called by the view in response to AcceleratedSurfaceBuffersSwapped or 394 // Called by the view in response to AcceleratedSurfaceBuffersSwapped or
395 // AcceleratedSurfacePostSubBuffer. 395 // AcceleratedSurfacePostSubBuffer.
396 static void AcknowledgeBufferPresent( 396 static void AcknowledgeBufferPresent(
397 int32 route_id, 397 int32 route_id,
398 int gpu_host_id, 398 int gpu_host_id,
399 bool presented, 399 uint64 surface_handle,
400 uint32 sync_point); 400 uint32 sync_point);
401 401
402 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for 402 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for
403 // platforms that support deferred GPU process descheduling. This does 403 // platforms that support deferred GPU process descheduling. This does
404 // nothing if the compositor thread is enabled. 404 // nothing if the compositor thread is enabled.
405 // TODO(jbates) Once the compositor thread is always on, this can be removed. 405 // TODO(jbates) Once the compositor thread is always on, this can be removed.
406 void AcknowledgeSwapBuffersToRenderer(); 406 void AcknowledgeSwapBuffersToRenderer();
407 407
408 #if defined(USE_AURA) 408 #if defined(USE_AURA)
409 // Called by the view when the parent changes. If a parent isn't available, 409 // Called by the view when the parent changes. If a parent isn't available,
410 // NULL is used. 410 // NULL is used.
411 void ParentChanged(gfx::NativeViewId new_parent); 411 void ParentChanged(gfx::NativeViewId new_parent);
412
413 // Called by the view in response to visibility changes:
414 // 1. After the front surface is guarenteed to no longer be in use by the ui
415 // (protected false),
416 // 2. When the ui expects to have a valid front surface (protected true).
417 static void SendFrontSurfaceIsProtected(bool is_protected,
418 uint32 protection_state_id,
419 int32 route_id,
420 int gpu_host_id);
421 #endif 412 #endif
422 413
423 // Signals that the compositing surface was updated, e.g. after a lost context 414 // Signals that the compositing surface was updated, e.g. after a lost context
424 // event. 415 // event.
425 void CompositingSurfaceUpdated(); 416 void CompositingSurfaceUpdated();
426 417
427 void set_allow_privileged_mouse_lock(bool allow) { 418 void set_allow_privileged_mouse_lock(bool allow) {
428 allow_privileged_mouse_lock_ = allow; 419 allow_privileged_mouse_lock_ = allow;
429 } 420 }
430 421
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 #if defined(OS_WIN) 866 #if defined(OS_WIN)
876 std::list<HWND> dummy_windows_for_activation_; 867 std::list<HWND> dummy_windows_for_activation_;
877 #endif 868 #endif
878 869
879 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 870 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
880 }; 871 };
881 872
882 } // namespace content 873 } // namespace content
883 874
884 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 875 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698