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

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

Issue 2094513002: Move static GL binding initialization to //ui/gl/init. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for comment. Created 4 years, 5 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 | « gpu/ipc/service/gpu_channel_unittest.cc ('k') | ui/gl/gl_egl_api_implementation.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_ANGLE_PLATFORM_IMPL_H_ 5 #ifndef UI_GL_ANGLE_PLATFORM_IMPL_H_
6 #define UI_GL_ANGLE_PLATFORM_IMPL_H_ 6 #define UI_GL_ANGLE_PLATFORM_IMPL_H_
7 7
8 // Implements the ANGLE platform interface, for functionality like 8 // Implements the ANGLE platform interface, for functionality like
9 // histograms and trace profiling. 9 // histograms and trace profiling.
10 10
11 #include "base/compiler_specific.h"
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "third_party/angle/include/platform/Platform.h" 13 #include "third_party/angle/include/platform/Platform.h"
14 #include "ui/gl/gl_export.h"
13 15
14 namespace gl { 16 namespace gl {
15 17
16 // Derives the base ANGLE platform and provides implementations 18 // Derives the base ANGLE platform and provides implementations
17 class ANGLEPlatformImpl : public angle::Platform { 19 class GL_EXPORT ANGLEPlatformImpl : NON_EXPORTED_BASE(public angle::Platform) {
18 public: 20 public:
19 ANGLEPlatformImpl(); 21 ANGLEPlatformImpl();
20 ~ANGLEPlatformImpl() override; 22 ~ANGLEPlatformImpl() override;
21 23
22 // angle::Platform: 24 // angle::Platform:
23 double currentTime() override; 25 double currentTime() override;
24 double monotonicallyIncreasingTime() override; 26 double monotonicallyIncreasingTime() override;
25 void logError(const char* errorMessage) override; 27 void logError(const char* errorMessage) override;
26 void logWarning(const char* warningMessage) override; 28 void logWarning(const char* warningMessage) override;
27 const unsigned char* getTraceCategoryEnabledFlag( 29 const unsigned char* getTraceCategoryEnabledFlag(
(...skipping 22 matching lines...) Expand all
50 void histogramSparse(const char* name, int sample) override; 52 void histogramSparse(const char* name, int sample) override;
51 void histogramBoolean(const char* name, bool sample) override; 53 void histogramBoolean(const char* name, bool sample) override;
52 54
53 private: 55 private:
54 DISALLOW_COPY_AND_ASSIGN(ANGLEPlatformImpl); 56 DISALLOW_COPY_AND_ASSIGN(ANGLEPlatformImpl);
55 }; 57 };
56 58
57 } // namespace gl 59 } // namespace gl
58 60
59 #endif // UI_GL_ANGLE_PLATFORM_IMPL_H_ 61 #endif // UI_GL_ANGLE_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_channel_unittest.cc ('k') | ui/gl/gl_egl_api_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698