summaryrefslogtreecommitdiffstats
path: root/gpu
diff options
context:
space:
mode:
authorbacker@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 19:24:49 +0000
committerbacker@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 19:24:49 +0000
commit5ae0b28229648b8b5d26624a45f3fffca4e545fd (patch)
treea97b457285d90a49521a360e7cad015fbd7e2474 /gpu
parent2f4aec1e3e10cac458f44747d650c2336e220554 (diff)
downloadchromium_src-5ae0b28229648b8b5d26624a45f3fffca4e545fd.zip
chromium_src-5ae0b28229648b8b5d26624a45f3fffca4e545fd.tar.gz
chromium_src-5ae0b28229648b8b5d26624a45f3fffca4e545fd.tar.bz2
Refactor: Move app/gfx/gl ==> ui/gfx/gl
This is the final patch in the sequence. Note that gl.gyp is introduced because dependency checking on the Mac is done on a per file (rather than per target) basis. BUG=none TEST=trybots Review URL: http://codereview.chromium.org/6722026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79599 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r--gpu/command_buffer/client/gles2_demo.cc2
-rw-r--r--gpu/command_buffer/common/gl_mock.h4
-rw-r--r--gpu/command_buffer/common/unittest_main.cc4
-rw-r--r--gpu/command_buffer/service/context_group.cc4
-rw-r--r--gpu/command_buffer/service/feature_info.cc2
-rw-r--r--gpu/command_buffer/service/gl_utils.h4
-rw-r--r--gpu/command_buffer/service/gles2_cmd_decoder.cc4
-rw-r--r--gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h2
-rw-r--r--gpu/command_buffer/service/gpu_processor.cc4
-rw-r--r--gpu/command_buffer/service/gpu_processor_linux.cc4
-rw-r--r--gpu/command_buffer/service/gpu_processor_mac.cc4
-rw-r--r--gpu/command_buffer/service/gpu_processor_win.cc4
-rw-r--r--gpu/demos/framework/main_exe.cc4
-rw-r--r--gpu/gpu.gyp7
14 files changed, 27 insertions, 26 deletions
diff --git a/gpu/command_buffer/client/gles2_demo.cc b/gpu/command_buffer/client/gles2_demo.cc
index 888b9ce..daa51d2 100644
--- a/gpu/command_buffer/client/gles2_demo.cc
+++ b/gpu/command_buffer/client/gles2_demo.cc
@@ -12,7 +12,6 @@
#include <shellapi.h>
#include <stdlib.h>
#include <stdio.h>
-#include "app/gfx/gl/gl_context.h"
#include "base/at_exit.h"
#include "base/command_line.h"
#include "base/callback.h"
@@ -26,6 +25,7 @@
#include "gpu/command_buffer/client/gles2_lib.h"
#include "gpu/command_buffer/client/gles2_demo_c.h"
#include "gpu/command_buffer/client/gles2_demo_cc.h"
+#include "ui/gfx/gl/gl_context.h"
using base::SharedMemory;
using gpu::Buffer;
diff --git a/gpu/command_buffer/common/gl_mock.h b/gpu/command_buffer/common/gl_mock.h
index fc20541..1a7e474 100644
--- a/gpu/command_buffer/common/gl_mock.h
+++ b/gpu/command_buffer/common/gl_mock.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -9,8 +9,8 @@
#define GPU_COMMAND_BUFFER_COMMON_GL_MOCK_H_
#pragma once
-#include "app/gfx/gl/gl_interface.h"
#include "testing/gmock/include/gmock/gmock.h"
+#include "ui/gfx/gl/gl_interface.h"
namespace gfx {
diff --git a/gpu/command_buffer/common/unittest_main.cc b/gpu/command_buffer/common/unittest_main.cc
index 86eb589..b9277db 100644
--- a/gpu/command_buffer/common/unittest_main.cc
+++ b/gpu/command_buffer/common/unittest_main.cc
@@ -1,11 +1,11 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/at_exit.h"
-#include "app/gfx/gl/gl_implementation.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "ui/gfx/gl/gl_implementation.h"
int main(int argc, char** argv) {
base::AtExitManager exit_manager;
diff --git a/gpu/command_buffer/service/context_group.cc b/gpu/command_buffer/service/context_group.cc
index 764cc64..70e8f17 100644
--- a/gpu/command_buffer/service/context_group.cc
+++ b/gpu/command_buffer/service/context_group.cc
@@ -1,8 +1,7 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "app/gfx/gl/gl_implementation.h"
#include "gpu/command_buffer/service/context_group.h"
#include "gpu/command_buffer/common/id_allocator.h"
#include "gpu/command_buffer/service/buffer_manager.h"
@@ -13,6 +12,7 @@
#include "gpu/command_buffer/service/shader_manager.h"
#include "gpu/command_buffer/service/texture_manager.h"
#include "gpu/GLES2/gles2_command_buffer.h"
+#include "ui/gfx/gl/gl_implementation.h"
namespace gpu {
namespace gles2 {
diff --git a/gpu/command_buffer/service/feature_info.cc b/gpu/command_buffer/service/feature_info.cc
index 19e71fc..aa0f51b 100644
--- a/gpu/command_buffer/service/feature_info.cc
+++ b/gpu/command_buffer/service/feature_info.cc
@@ -4,10 +4,10 @@
#include <set>
#include <string>
-#include "app/gfx/gl/gl_implementation.h"
#include "gpu/command_buffer/service/feature_info.h"
#include "gpu/command_buffer/service/gl_utils.h"
#include "gpu/GLES2/gles2_command_buffer.h"
+#include "ui/gfx/gl/gl_implementation.h"
namespace gpu {
namespace gles2 {
diff --git a/gpu/command_buffer/service/gl_utils.h b/gpu/command_buffer/service/gl_utils.h
index f7a5f8f..3091ee7 100644
--- a/gpu/command_buffer/service/gl_utils.h
+++ b/gpu/command_buffer/service/gl_utils.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -9,7 +9,7 @@
#define GPU_COMMAND_BUFFER_SERVICE_GL_UTILS_H_
#include "build/build_config.h"
-#include "app/gfx/gl/gl_bindings.h"
+#include "ui/gfx/gl/gl_bindings.h"
// GLES2 defines not part of Desktop GL
// Shader Precision-Specified Types
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 94f3ad0..e2bfc7a 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -12,8 +12,6 @@
#include <string>
#include <vector>
-#include "app/gfx/gl/gl_context.h"
-#include "app/gfx/gl/gl_implementation.h"
#include "base/atomicops.h"
#include "base/at_exit.h"
#include "base/callback.h"
@@ -37,6 +35,8 @@
#include "gpu/command_buffer/service/shader_translator.h"
#include "gpu/command_buffer/service/texture_manager.h"
#include "gpu/GLES2/gles2_command_buffer.h"
+#include "ui/gfx/gl/gl_context.h"
+#include "ui/gfx/gl/gl_implementation.h"
#if !defined(GL_DEPTH24_STENCIL8)
#define GL_DEPTH24_STENCIL8 0x88F0
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h
index 6496c3f..ed1f025 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h
@@ -5,7 +5,6 @@
#ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
#define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
-#include "app/gfx/gl/gl_context_stub.h"
#include "gpu/command_buffer/common/gl_mock.h"
#include "gpu/command_buffer/common/gles2_cmd_format.h"
#include "gpu/command_buffer/common/gles2_cmd_utils.h"
@@ -20,6 +19,7 @@
#include "gpu/command_buffer/service/texture_manager.h"
#include "gpu/GLES2/gles2_command_buffer.h"
#include "testing/gtest/include/gtest/gtest.h"
+#include "ui/gfx/gl/gl_context_stub.h"
namespace gpu {
namespace gles2 {
diff --git a/gpu/command_buffer/service/gpu_processor.cc b/gpu/command_buffer/service/gpu_processor.cc
index b43b98e..c2363b8 100644
--- a/gpu/command_buffer/service/gpu_processor.cc
+++ b/gpu/command_buffer/service/gpu_processor.cc
@@ -4,12 +4,12 @@
#include "gpu/command_buffer/service/gpu_processor.h"
-#include "app/gfx/gl/gl_bindings.h"
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/message_loop.h"
-#include "app/gfx/gl/gl_context.h"
#include "gpu/common/gpu_trace_event.h"
+#include "ui/gfx/gl/gl_context.h"
+#include "ui/gfx/gl/gl_bindings.h"
using ::base::SharedMemory;
diff --git a/gpu/command_buffer/service/gpu_processor_linux.cc b/gpu/command_buffer/service/gpu_processor_linux.cc
index 5627d63..87f694e 100644
--- a/gpu/command_buffer/service/gpu_processor_linux.cc
+++ b/gpu/command_buffer/service/gpu_processor_linux.cc
@@ -1,9 +1,9 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "app/gfx/gl/gl_context.h"
#include "gpu/command_buffer/service/gpu_processor.h"
+#include "ui/gfx/gl/gl_context.h"
using ::base::SharedMemory;
diff --git a/gpu/command_buffer/service/gpu_processor_mac.cc b/gpu/command_buffer/service/gpu_processor_mac.cc
index 757de57..4d250ac 100644
--- a/gpu/command_buffer/service/gpu_processor_mac.cc
+++ b/gpu/command_buffer/service/gpu_processor_mac.cc
@@ -1,9 +1,9 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "app/gfx/gl/gl_context.h"
#include "gpu/command_buffer/service/gpu_processor.h"
+#include "ui/gfx/gl/gl_context.h"
using ::base::SharedMemory;
diff --git a/gpu/command_buffer/service/gpu_processor_win.cc b/gpu/command_buffer/service/gpu_processor_win.cc
index 465cf5a..fb48f74 100644
--- a/gpu/command_buffer/service/gpu_processor_win.cc
+++ b/gpu/command_buffer/service/gpu_processor_win.cc
@@ -1,11 +1,11 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <windows.h>
-#include "app/gfx/gl/gl_context.h"
#include "gpu/command_buffer/service/gpu_processor.h"
+#include "ui/gfx/gl/gl_context.h"
using ::base::SharedMemory;
diff --git a/gpu/demos/framework/main_exe.cc b/gpu/demos/framework/main_exe.cc
index 5dd1341..93fc51e 100644
--- a/gpu/demos/framework/main_exe.cc
+++ b/gpu/demos/framework/main_exe.cc
@@ -1,12 +1,12 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "app/gfx/gl/gl_context.h"
#include "base/at_exit.h"
#include "base/command_line.h"
#include "base/logging.h"
#include "gpu/demos/framework/window.h"
+#include "ui/gfx/gl/gl_context.h"
#if defined(OS_LINUX)
#include <gtk/gtk.h>
diff --git a/gpu/gpu.gyp b/gpu/gpu.gyp
index 4b25208..547c670 100644
--- a/gpu/gpu.gyp
+++ b/gpu/gpu.gyp
@@ -178,10 +178,10 @@
'dependencies': [
'command_buffer_common',
'gpu_common',
- '../app/app.gyp:app_base',
'../base/base.gyp:base',
- '../ui/ui.gyp:ui_gfx',
+ '../ui/gfx/gl/gl.gyp:gl',
'../ui/gfx/surface/surface.gyp:surface',
+ '../ui/ui.gyp:ui_gfx',
'../third_party/angle/src/build_angle.gyp:translator_glsl',
],
'sources': [
@@ -244,6 +244,7 @@
'../testing/gmock.gyp:gmock',
'../testing/gmock.gyp:gmock_main',
'../testing/gtest.gyp:gtest',
+ '../ui/gfx/gl/gl.gyp:gl',
'command_buffer_client',
'command_buffer_common',
'command_buffer_service',
@@ -307,9 +308,9 @@
'target_name': 'gpu_unittest_utils',
'type': 'static_library',
'dependencies': [
- '../app/app.gyp:app_base',
'../testing/gmock.gyp:gmock',
'../testing/gtest.gyp:gtest',
+ '../ui/gfx/gl/gl.gyp:gl',
],
'include_dirs': [
'..',