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

Side by Side Diff: content/browser/compositor/gpu_process_transport_factory.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/compositor/gpu_process_transport_factory.h" 5 #include "content/browser/compositor/gpu_process_transport_factory.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 } 322 }
323 323
324 base::MessageLoopProxy* GpuProcessTransportFactory::GetCompositorMessageLoop() { 324 base::MessageLoopProxy* GpuProcessTransportFactory::GetCompositorMessageLoop() {
325 if (!compositor_thread_) 325 if (!compositor_thread_)
326 return NULL; 326 return NULL;
327 return compositor_thread_->message_loop_proxy().get(); 327 return compositor_thread_->message_loop_proxy().get();
328 } 328 }
329 329
330 gfx::GLSurfaceHandle GpuProcessTransportFactory::GetSharedSurfaceHandle() { 330 gfx::GLSurfaceHandle GpuProcessTransportFactory::GetSharedSurfaceHandle() {
331 gfx::GLSurfaceHandle handle = gfx::GLSurfaceHandle( 331 gfx::GLSurfaceHandle handle = gfx::GLSurfaceHandle(
332 gfx::kNullPluginWindow, gfx::TEXTURE_TRANSPORT); 332 gfx::kNullPluginWindow, gfx::NULL_TRANSPORT);
333 handle.parent_client_id = 333 handle.parent_client_id =
334 BrowserGpuChannelHostFactory::instance()->GetGpuChannelId(); 334 BrowserGpuChannelHostFactory::instance()->GetGpuChannelId();
335 return handle; 335 return handle;
336 } 336 }
337 337
338 scoped_ptr<cc::SurfaceIdAllocator> 338 scoped_ptr<cc::SurfaceIdAllocator>
339 GpuProcessTransportFactory::CreateSurfaceIdAllocator() { 339 GpuProcessTransportFactory::CreateSurfaceIdAllocator() {
340 return make_scoped_ptr( 340 return make_scoped_ptr(
341 new cc::SurfaceIdAllocator(next_surface_id_namespace_++)); 341 new cc::SurfaceIdAllocator(next_surface_id_namespace_++));
342 } 342 }
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 FOR_EACH_OBSERVER(ImageTransportFactoryObserver, 473 FOR_EACH_OBSERVER(ImageTransportFactoryObserver,
474 observer_list_, 474 observer_list_,
475 OnLostResources()); 475 OnLostResources());
476 476
477 // Kill things that use the shared context before killing the shared context. 477 // Kill things that use the shared context before killing the shared context.
478 lost_gl_helper.reset(); 478 lost_gl_helper.reset();
479 lost_shared_main_thread_contexts = NULL; 479 lost_shared_main_thread_contexts = NULL;
480 } 480 }
481 481
482 } // namespace content 482 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698