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

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

Issue 19331002: Associate an id with the output surface to handle lost contexts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android, tests Created 7 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 | 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 441
442 // Called by the view in response to AcceleratedSurfaceBuffersSwapped or 442 // Called by the view in response to AcceleratedSurfaceBuffersSwapped or
443 // AcceleratedSurfacePostSubBuffer. 443 // AcceleratedSurfacePostSubBuffer.
444 static void AcknowledgeBufferPresent( 444 static void AcknowledgeBufferPresent(
445 int32 route_id, 445 int32 route_id,
446 int gpu_host_id, 446 int gpu_host_id,
447 const AcceleratedSurfaceMsg_BufferPresented_Params& params); 447 const AcceleratedSurfaceMsg_BufferPresented_Params& params);
448 448
449 // Called by the view in response to OnSwapCompositorFrame. 449 // Called by the view in response to OnSwapCompositorFrame.
450 static void SendSwapCompositorFrameAck( 450 static void SendSwapCompositorFrameAck(
451 int32 route_id, int renderer_host_id, const cc::CompositorFrameAck& ack); 451 int32 route_id,
452 uint32 output_surface_id,
453 int renderer_host_id,
454 const cc::CompositorFrameAck& ack);
452 455
453 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for 456 // Called by the view in response to AcceleratedSurfaceBuffersSwapped for
454 // platforms that support deferred GPU process descheduling. This does 457 // platforms that support deferred GPU process descheduling. This does
455 // nothing if the compositor thread is enabled. 458 // nothing if the compositor thread is enabled.
456 // TODO(jbates) Once the compositor thread is always on, this can be removed. 459 // TODO(jbates) Once the compositor thread is always on, this can be removed.
457 void AcknowledgeSwapBuffersToRenderer(); 460 void AcknowledgeSwapBuffersToRenderer();
458 461
459 bool is_threaded_compositing_enabled() const { 462 bool is_threaded_compositing_enabled() const {
460 return is_threaded_compositing_enabled_; 463 return is_threaded_compositing_enabled_;
461 } 464 }
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 int64 last_input_number_; 961 int64 last_input_number_;
959 962
960 BrowserRenderingStats rendering_stats_; 963 BrowserRenderingStats rendering_stats_;
961 964
962 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 965 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
963 }; 966 };
964 967
965 } // namespace content 968 } // namespace content
966 969
967 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 970 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.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