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

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

Issue 10392068: ui: Move gl/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac_rel 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/browser_gpu_channel_host_factory.h"
15 #include "content/browser/gpu/gpu_surface_tracker.h" 15 #include "content/browser/gpu/gpu_surface_tracker.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/gl_helper.h" 17 #include "content/common/gpu/client/gl_helper.h"
18 #include "content/common/gpu/client/gpu_channel_host.h" 18 #include "content/common/gpu/client/gpu_channel_host.h"
19 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" 19 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
20 #include "content/common/gpu/gpu_process_launch_causes.h" 20 #include "content/common/gpu/gpu_process_launch_causes.h"
21 #include "content/public/common/content_switches.h" 21 #include "content/public/common/content_switches.h"
22 #include "gpu/ipc/command_buffer_proxy.h" 22 #include "gpu/ipc/command_buffer_proxy.h"
23 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h" 23 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h"
24 #include "ui/compositor/compositor.h" 24 #include "ui/compositor/compositor.h"
25 #include "ui/compositor/compositor_setup.h" 25 #include "ui/compositor/compositor_setup.h"
26 #include "ui/gfx/gl/scoped_make_current.h"
27 #include "ui/gfx/native_widget_types.h" 26 #include "ui/gfx/native_widget_types.h"
28 #include "ui/gfx/size.h" 27 #include "ui/gfx/size.h"
28 #include "ui/gl/scoped_make_current.h"
29 29
30 using content::BrowserGpuChannelHostFactory; 30 using content::BrowserGpuChannelHostFactory;
31 using content::GLHelper; 31 using content::GLHelper;
32 32
33 namespace { 33 namespace {
34 34
35 ImageTransportFactory* g_factory; 35 ImageTransportFactory* g_factory;
36 36
37 class DefaultTransportFactory 37 class DefaultTransportFactory
38 : public ui::DefaultContextFactory, 38 : public ui::DefaultContextFactory,
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 void ImageTransportFactory::Terminate() { 410 void ImageTransportFactory::Terminate() {
411 ui::ContextFactory::SetInstance(NULL); 411 ui::ContextFactory::SetInstance(NULL);
412 delete g_factory; 412 delete g_factory;
413 g_factory = NULL; 413 g_factory = NULL;
414 } 414 }
415 415
416 // static 416 // static
417 ImageTransportFactory* ImageTransportFactory::GetInstance() { 417 ImageTransportFactory* ImageTransportFactory::GetInstance() {
418 return g_factory; 418 return g_factory;
419 } 419 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698