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

Side by Side Diff: ui/gl/gl_context_osmesa.h

Issue 812543002: Update from https://crrev.com/308331 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « ui/gl/gl_context_glx.cc ('k') | ui/gl/gl_context_osmesa.cc » ('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 (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 #ifndef UI_GL_GL_CONTEXT_OSMESA_H_ 5 #ifndef UI_GL_GL_CONTEXT_OSMESA_H_
6 #define UI_GL_GL_CONTEXT_OSMESA_H_ 6 #define UI_GL_GL_CONTEXT_OSMESA_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/gl/gl_context.h" 10 #include "ui/gl/gl_context.h"
(...skipping 11 matching lines...) Expand all
22 explicit GLContextOSMesa(GLShareGroup* share_group); 22 explicit GLContextOSMesa(GLShareGroup* share_group);
23 23
24 // Implement GLContext. 24 // Implement GLContext.
25 bool Initialize(GLSurface* compatible_surface, 25 bool Initialize(GLSurface* compatible_surface,
26 GpuPreference gpu_preference) override; 26 GpuPreference gpu_preference) override;
27 void Destroy() override; 27 void Destroy() override;
28 bool MakeCurrent(GLSurface* surface) override; 28 bool MakeCurrent(GLSurface* surface) override;
29 void ReleaseCurrent(GLSurface* surface) override; 29 void ReleaseCurrent(GLSurface* surface) override;
30 bool IsCurrent(GLSurface* surface) override; 30 bool IsCurrent(GLSurface* surface) override;
31 void* GetHandle() override; 31 void* GetHandle() override;
32 void SetSwapInterval(int interval) override; 32 void OnSetSwapInterval(int interval) override;
33 33
34 protected: 34 protected:
35 ~GLContextOSMesa() override; 35 ~GLContextOSMesa() override;
36 36
37 private: 37 private:
38 OSMesaContext context_; 38 OSMesaContext context_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(GLContextOSMesa); 40 DISALLOW_COPY_AND_ASSIGN(GLContextOSMesa);
41 }; 41 };
42 42
43 } // namespace gfx 43 } // namespace gfx
44 44
45 #endif // UI_GL_GL_CONTEXT_OSMESA_H_ 45 #endif // UI_GL_GL_CONTEXT_OSMESA_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_context_glx.cc ('k') | ui/gl/gl_context_osmesa.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698