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

Side by Side Diff: mojo/skia/gl_bindings_skia.cc

Issue 2236083002: Move mojo/public/c/gpu/* to mojo/public/c/include. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: foo Created 4 years, 4 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
« no previous file with comments | « mojo/skia/ganesh_context.cc ('k') | services/gfx/compositor/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "mojo/skia/gl_bindings_skia.h" 5 #include "mojo/skia/gl_bindings_skia.h"
6 6
7 #ifndef GL_GLEXT_PROTOTYPES 7 #ifndef GL_GLEXT_PROTOTYPES
8 #define GL_GLEXT_PROTOTYPES 8 #define GL_GLEXT_PROTOTYPES
9 #endif 9 #endif
10 #include "mojo/public/c/gpu/GLES2/gl2.h" 10 #include <GLES2/gl2.h>
11 #include "mojo/public/c/gpu/GLES2/gl2ext.h" 11 #include <GLES2/gl2ext.h>
12 #include "mojo/public/c/gpu/GLES2/gl2extmojo.h" 12 #include <GLES2/gl2extmojo.h>
13
13 #include "third_party/skia/include/gpu/gl/GrGLInterface.h" 14 #include "third_party/skia/include/gpu/gl/GrGLInterface.h"
14 15
15 namespace mojo { 16 namespace mojo {
16 namespace skia { 17 namespace skia {
17 18
18 sk_sp<GrGLInterface> CreateMojoSkiaGLBinding() { 19 sk_sp<GrGLInterface> CreateMojoSkiaGLBinding() {
19 sk_sp<GrGLInterface> interface = sk_make_sp<GrGLInterface>(); 20 sk_sp<GrGLInterface> interface = sk_make_sp<GrGLInterface>();
20 interface->fStandard = kGLES_GrGLStandard; 21 interface->fStandard = kGLES_GrGLStandard;
21 interface->fExtensions.init(kGLES_GrGLStandard, glGetString, nullptr, 22 interface->fExtensions.init(kGLES_GrGLStandard, glGetString, nullptr,
22 glGetIntegerv); 23 glGetIntegerv);
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 functions->fBlitFramebuffer = nullptr; // TODO: Implement. 146 functions->fBlitFramebuffer = nullptr; // TODO: Implement.
146 functions->fGenerateMipmap = glGenerateMipmap; 147 functions->fGenerateMipmap = glGenerateMipmap;
147 functions->fMatrixLoadf = nullptr; // TODO: Implement. 148 functions->fMatrixLoadf = nullptr; // TODO: Implement.
148 functions->fMatrixLoadIdentity = nullptr; // TODO: Implement. 149 functions->fMatrixLoadIdentity = nullptr; // TODO: Implement.
149 150
150 return interface; 151 return interface;
151 } 152 }
152 153
153 } // namespace skia 154 } // namespace skia
154 } // namespace mojo 155 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/skia/ganesh_context.cc ('k') | services/gfx/compositor/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698