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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.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_VIEW_BASE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
7 7
8 #if defined(OS_MACOSX) 8 #if defined(OS_MACOSX)
9 #include <OpenGL/OpenGL.h> 9 #include <OpenGL/OpenGL.h>
10 #endif 10 #endif
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, 69 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch,
70 InputEventAckState ack_result) OVERRIDE; 70 InputEventAckState ack_result) OVERRIDE;
71 virtual SmoothScrollGesture* CreateSmoothScrollGesture( 71 virtual SmoothScrollGesture* CreateSmoothScrollGesture(
72 bool scroll_down, int pixels_to_scroll, int mouse_event_x, 72 bool scroll_down, int pixels_to_scroll, int mouse_event_x,
73 int mouse_event_y) OVERRIDE; 73 int mouse_event_y) OVERRIDE;
74 virtual bool CanSubscribeFrame() const OVERRIDE; 74 virtual bool CanSubscribeFrame() const OVERRIDE;
75 virtual void BeginFrameSubscription( 75 virtual void BeginFrameSubscription(
76 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE; 76 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) OVERRIDE;
77 virtual void EndFrameSubscription() OVERRIDE; 77 virtual void EndFrameSubscription() OVERRIDE;
78 virtual void OnSwapCompositorFrame( 78 virtual void OnSwapCompositorFrame(
79 uint32 output_surface_id,
79 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE {} 80 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE {}
80 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, 81 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll,
81 gfx::Vector2dF current_fling_velocity) OVERRIDE; 82 gfx::Vector2dF current_fling_velocity) OVERRIDE;
82 virtual uint32 RendererFrameNumber() OVERRIDE; 83 virtual uint32 RendererFrameNumber() OVERRIDE;
83 virtual void DidReceiveRendererFrame() OVERRIDE; 84 virtual void DidReceiveRendererFrame() OVERRIDE;
84 85
85 void SetBrowserAccessibilityManager(BrowserAccessibilityManager* manager); 86 void SetBrowserAccessibilityManager(BrowserAccessibilityManager* manager);
86 87
87 // Notification that a resize or move session ended on the native widget. 88 // Notification that a resize or move session ended on the native widget.
88 void UpdateScreenInfo(gfx::NativeView view); 89 void UpdateScreenInfo(gfx::NativeView view);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 gfx::Rect current_display_area_; 152 gfx::Rect current_display_area_;
152 153
153 uint32 renderer_frame_number_; 154 uint32 renderer_frame_number_;
154 155
155 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 156 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
156 }; 157 };
157 158
158 } // namespace content 159 } // namespace content
159 160
160 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 161 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698