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

Side by Side Diff: content/browser/renderer_host/image_transport_factory.cc

Issue 10365007: ui: Move compositor/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix DEPS Created 8 years, 7 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 #include "content/browser/renderer_host/image_transport_factory.h" 5 #include "content/browser/renderer_host/image_transport_factory.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "content/browser/gpu/browser_gpu_channel_host_factory.h"
14 #include "content/browser/gpu/gpu_surface_tracker.h" 15 #include "content/browser/gpu/gpu_surface_tracker.h"
15 #include "content/browser/gpu/browser_gpu_channel_host_factory.h"
16 #include "content/browser/renderer_host/image_transport_client.h" 16 #include "content/browser/renderer_host/image_transport_client.h"
17 #include "content/common/gpu/client/gpu_channel_host.h" 17 #include "content/common/gpu/client/gpu_channel_host.h"
18 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" 18 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
19 #include "content/common/gpu/gpu_process_launch_causes.h" 19 #include "content/common/gpu/gpu_process_launch_causes.h"
20 #include "content/public/common/content_switches.h" 20 #include "content/public/common/content_switches.h"
21 #include "gpu/ipc/command_buffer_proxy.h" 21 #include "gpu/ipc/command_buffer_proxy.h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h"
23 #include "ui/gfx/compositor/compositor.h" 23 #include "ui/compositor/compositor.h"
24 #include "ui/gfx/compositor/compositor_setup.h" 24 #include "ui/compositor/compositor_setup.h"
25 #include "ui/gfx/gl/gl_context.h" 25 #include "ui/gfx/gl/gl_context.h"
26 #include "ui/gfx/gl/gl_surface.h" 26 #include "ui/gfx/gl/gl_surface.h"
27 #include "ui/gfx/gl/scoped_make_current.h" 27 #include "ui/gfx/gl/scoped_make_current.h"
28 #include "ui/gfx/native_widget_types.h" 28 #include "ui/gfx/native_widget_types.h"
29 #include "ui/gfx/size.h" 29 #include "ui/gfx/size.h"
30 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" 30 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h"
31 31
32 using content::BrowserGpuChannelHostFactory; 32 using content::BrowserGpuChannelHostFactory;
33 33
34 namespace { 34 namespace {
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 void ImageTransportFactory::Terminate() { 468 void ImageTransportFactory::Terminate() {
469 ui::ContextFactory::SetInstance(NULL); 469 ui::ContextFactory::SetInstance(NULL);
470 delete g_factory; 470 delete g_factory;
471 g_factory = NULL; 471 g_factory = NULL;
472 } 472 }
473 473
474 // static 474 // static
475 ImageTransportFactory* ImageTransportFactory::GetInstance() { 475 ImageTransportFactory* ImageTransportFactory::GetInstance() {
476 return g_factory; 476 return g_factory;
477 } 477 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/image_transport_client.h ('k') | content/browser/renderer_host/render_widget_host_view_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698