OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 9 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 virtual void CopyFromCompositingSurface( | 88 virtual void CopyFromCompositingSurface( |
89 const gfx::Rect& src_subrect, | 89 const gfx::Rect& src_subrect, |
90 const gfx::Size& dst_size, | 90 const gfx::Size& dst_size, |
91 const base::Callback<void(bool, const SkBitmap&)>& callback, | 91 const base::Callback<void(bool, const SkBitmap&)>& callback, |
92 const SkColorType color_type) OVERRIDE; | 92 const SkColorType color_type) OVERRIDE; |
93 virtual void CopyFromCompositingSurfaceToVideoFrame( | 93 virtual void CopyFromCompositingSurfaceToVideoFrame( |
94 const gfx::Rect& src_subrect, | 94 const gfx::Rect& src_subrect, |
95 const scoped_refptr<media::VideoFrame>& target, | 95 const scoped_refptr<media::VideoFrame>& target, |
96 const base::Callback<void(bool)>& callback) OVERRIDE; | 96 const base::Callback<void(bool)>& callback) OVERRIDE; |
97 virtual bool CanCopyToVideoFrame() const OVERRIDE; | 97 virtual bool CanCopyToVideoFrame() const OVERRIDE; |
98 virtual void AcceleratedSurfaceInitialized(int host_id, | |
99 int route_id) OVERRIDE; | |
100 virtual void AcceleratedSurfaceBuffersSwapped( | |
101 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | |
102 int gpu_host_id) OVERRIDE; | |
103 virtual void AcceleratedSurfacePostSubBuffer( | |
104 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | |
105 int gpu_host_id) OVERRIDE; | |
106 virtual void AcceleratedSurfaceSuspend() OVERRIDE; | |
107 virtual void AcceleratedSurfaceRelease() OVERRIDE; | |
108 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; | 98 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; |
109 virtual void OnSwapCompositorFrame( | 99 virtual void OnSwapCompositorFrame( |
110 uint32 output_surface_id, | 100 uint32 output_surface_id, |
111 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE; | 101 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE; |
112 virtual void GetScreenInfo(blink::WebScreenInfo* results) OVERRIDE; | 102 virtual void GetScreenInfo(blink::WebScreenInfo* results) OVERRIDE; |
113 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; | 103 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; |
114 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; | 104 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; |
115 #if defined(USE_AURA) | 105 #if defined(USE_AURA) |
116 virtual void ProcessAckedTouchEvent( | 106 virtual void ProcessAckedTouchEvent( |
117 const TouchEventWithLatencyInfo& touch, | 107 const TouchEventWithLatencyInfo& touch, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 // sent through it are routed to the embedding renderer process. | 163 // sent through it are routed to the embedding renderer process. |
174 CrossProcessFrameConnector* frame_connector_; | 164 CrossProcessFrameConnector* frame_connector_; |
175 | 165 |
176 private: | 166 private: |
177 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); | 167 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); |
178 }; | 168 }; |
179 | 169 |
180 } // namespace content | 170 } // namespace content |
181 | 171 |
182 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ | 172 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ |
OLD | NEW |