Skip to content

Commit

Permalink
Use the GL headers from the Mojo SDK when building for Mojo
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesr committed Aug 28, 2015
1 parent 28ee74d commit 34f24c6
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 12 deletions.
1 change: 0 additions & 1 deletion mojo/gpu/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ source_set("gpu") {
deps = [
"//base",
"//mojo/environment:chromium",
"//mojo/public/c/gles2",
"//mojo/public/c/gpu",
"//mojo/public/c/gpu:gpu_onscreen",
"//mojo/public/c/system",
Expand Down
2 changes: 1 addition & 1 deletion mojo/gpu/gl_texture.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "mojo/gpu/gl_texture.h"

#include "mojo/public/c/gles2/gles2.h"
#include "mojo/public/c/gpu/GLES2/gl2.h"

namespace mojo {

Expand Down
2 changes: 1 addition & 1 deletion mojo/gpu/texture_cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#define GL_GLEXT_PROTOTYPES
#endif

#include <GLES2/gl2extchromium.h>
#include <GLES2/gl2extmojo.h>

#include "mojo/gpu/gl_context.h"
#include "mojo/gpu/gl_texture.h"
Expand Down
4 changes: 1 addition & 3 deletions mojo/gpu/texture_uploader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@
#endif

#include <GLES2/gl2.h>
#include <GLES2/gl2chromium.h>
#include <GLES2/gl2extchromium.h>
#include <GLES2/gl2extmojo.h>

#include "mojo/public/c/gles2/gles2.h"
#include "mojo/services/geometry/public/cpp/geometry_util.h"
#include "mojo/services/surfaces/public/cpp/surfaces_utils.h"

Expand Down
3 changes: 1 addition & 2 deletions mojo/services/view_manager/public/cpp/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ mojo_sdk_source_set("cpp") {
]

mojo_sdk_deps = [
"mojo/public/c/gles2:headers",
"mojo/public/cpp/application",
"mojo/public/cpp/bindings:bindings",
"mojo/public/cpp/bindings",
"mojo/public/cpp/system",
"mojo/public/interfaces/application",
]
Expand Down
2 changes: 1 addition & 1 deletion services/sky/compositor/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ source_set("compositor") {
"//mojo/application",
"//mojo/converters/geometry",
"//mojo/gpu",
"//mojo/public/c/gles2",
"//mojo/public/c/gpu",
"//mojo/public/cpp/bindings",
"//mojo/public/cpp/environment",
"//mojo/public/cpp/system",
Expand Down
5 changes: 2 additions & 3 deletions services/sky/compositor/resource_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@
#ifndef GL_GLEXT_PROTOTYPES
#define GL_GLEXT_PROTOTYPES
#endif
#include <GLES2/gl2.h>
#include <GLES2/gl2extmojo.h>

#include "base/logging.h"
#include "base/stl_util.h"
#include "gpu/GLES2/gl2chromium.h"
#include "gpu/GLES2/gl2extchromium.h"
#include "mojo/converters/geometry/geometry_type_converters.h"
#include "mojo/gpu/gl_context.h"
#include "mojo/gpu/gl_texture.h"
#include "mojo/public/c/gles2/gles2.h"
#include "services/sky/compositor/layer.h"

namespace sky {
Expand Down

0 comments on commit 34f24c6

Please sign in to comment.