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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame.cc

Issue 615503004: Remove TextureImageTransportSurface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NOTREACHED -> NOTIMPLEMENTED Created 6 years, 2 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
OLDNEW
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 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" 5 #include "content/browser/frame_host/render_widget_host_view_child_frame.h"
6 6
7 #include "content/browser/accessibility/browser_accessibility_manager.h" 7 #include "content/browser/accessibility/browser_accessibility_manager.h"
8 #include "content/browser/frame_host/cross_process_frame_connector.h" 8 #include "content/browser/frame_host/cross_process_frame_connector.h"
9 #include "content/browser/renderer_host/render_widget_host_impl.h" 9 #include "content/browser/renderer_host/render_widget_host_impl.h"
10 #include "content/common/gpu/gpu_messages.h" 10 #include "content/common/gpu/gpu_messages.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 #endif 195 #endif
196 196
197 #if defined(OS_ANDROID) 197 #if defined(OS_ANDROID)
198 void RenderWidgetHostViewChildFrame::LockCompositingSurface() { 198 void RenderWidgetHostViewChildFrame::LockCompositingSurface() {
199 } 199 }
200 200
201 void RenderWidgetHostViewChildFrame::UnlockCompositingSurface() { 201 void RenderWidgetHostViewChildFrame::UnlockCompositingSurface() {
202 } 202 }
203 #endif 203 #endif
204 204
205 void RenderWidgetHostViewChildFrame::AcceleratedSurfaceInitialized(int host_id,
206 int route_id) {
207 }
208
209 void RenderWidgetHostViewChildFrame::AcceleratedSurfaceBuffersSwapped(
210 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
211 int gpu_host_id) {
212 NOTREACHED();
213 }
214
215 void RenderWidgetHostViewChildFrame::AcceleratedSurfacePostSubBuffer(
216 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params,
217 int gpu_host_id) {
218 }
219
220 void RenderWidgetHostViewChildFrame::OnSwapCompositorFrame( 205 void RenderWidgetHostViewChildFrame::OnSwapCompositorFrame(
221 uint32 output_surface_id, 206 uint32 output_surface_id,
222 scoped_ptr<cc::CompositorFrame> frame) { 207 scoped_ptr<cc::CompositorFrame> frame) {
223 last_scroll_offset_ = frame->metadata.root_scroll_offset; 208 last_scroll_offset_ = frame->metadata.root_scroll_offset;
224 if (frame_connector_) { 209 if (frame_connector_) {
225 frame_connector_->ChildFrameCompositorFrameSwapped( 210 frame_connector_->ChildFrameCompositorFrameSwapped(
226 output_surface_id, 211 output_surface_id,
227 host_->GetProcess()->GetID(), 212 host_->GetProcess()->GetID(),
228 host_->GetRoutingID(), 213 host_->GetRoutingID(),
229 frame.Pass()); 214 frame.Pass());
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 const scoped_refptr<media::VideoFrame>& target, 287 const scoped_refptr<media::VideoFrame>& target,
303 const base::Callback<void(bool)>& callback) { 288 const base::Callback<void(bool)>& callback) {
304 NOTIMPLEMENTED(); 289 NOTIMPLEMENTED();
305 callback.Run(false); 290 callback.Run(false);
306 } 291 }
307 292
308 bool RenderWidgetHostViewChildFrame::CanCopyToVideoFrame() const { 293 bool RenderWidgetHostViewChildFrame::CanCopyToVideoFrame() const {
309 return false; 294 return false;
310 } 295 }
311 296
312 void RenderWidgetHostViewChildFrame::AcceleratedSurfaceSuspend() {
313 NOTREACHED();
314 }
315
316 void RenderWidgetHostViewChildFrame::AcceleratedSurfaceRelease() {
317 }
318
319 bool RenderWidgetHostViewChildFrame::HasAcceleratedSurface( 297 bool RenderWidgetHostViewChildFrame::HasAcceleratedSurface(
320 const gfx::Size& desired_size) { 298 const gfx::Size& desired_size) {
321 return false; 299 return false;
322 } 300 }
323 301
324 gfx::GLSurfaceHandle RenderWidgetHostViewChildFrame::GetCompositingSurface() { 302 gfx::GLSurfaceHandle RenderWidgetHostViewChildFrame::GetCompositingSurface() {
325 return gfx::GLSurfaceHandle(gfx::kNullPluginWindow, gfx::TEXTURE_TRANSPORT); 303 return gfx::GLSurfaceHandle(gfx::kNullPluginWindow, gfx::NULL_TRANSPORT);
326 } 304 }
327 305
328 #if defined(OS_WIN) 306 #if defined(OS_WIN)
329 void RenderWidgetHostViewChildFrame::SetParentNativeViewAccessible( 307 void RenderWidgetHostViewChildFrame::SetParentNativeViewAccessible(
330 gfx::NativeViewAccessible accessible_parent) { 308 gfx::NativeViewAccessible accessible_parent) {
331 } 309 }
332 310
333 gfx::NativeViewId RenderWidgetHostViewChildFrame::GetParentForWindowlessPlugin() 311 gfx::NativeViewId RenderWidgetHostViewChildFrame::GetParentForWindowlessPlugin()
334 const { 312 const {
335 return NULL; 313 return NULL;
336 } 314 }
337 #endif // defined(OS_WIN) 315 #endif // defined(OS_WIN)
338 316
339 SkColorType RenderWidgetHostViewChildFrame::PreferredReadbackFormat() { 317 SkColorType RenderWidgetHostViewChildFrame::PreferredReadbackFormat() {
340 return kN32_SkColorType; 318 return kN32_SkColorType;
341 } 319 }
342 320
343 BrowserAccessibilityManager* 321 BrowserAccessibilityManager*
344 RenderWidgetHostViewChildFrame::CreateBrowserAccessibilityManager( 322 RenderWidgetHostViewChildFrame::CreateBrowserAccessibilityManager(
345 BrowserAccessibilityDelegate* delegate) { 323 BrowserAccessibilityDelegate* delegate) {
346 return BrowserAccessibilityManager::Create( 324 return BrowserAccessibilityManager::Create(
347 BrowserAccessibilityManager::GetEmptyDocument(), delegate); 325 BrowserAccessibilityManager::GetEmptyDocument(), delegate);
348 } 326 }
349 327
350 } // namespace content 328 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698