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

Side by Side Diff: gpu/gles2_conform_support/egl/context.h

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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/config/gpu_info_collector_win.cc ('k') | gpu/gles2_conform_support/egl/context.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 GPU_GLES2_CONFORM_TEST_CONTEXT_H_ 5 #ifndef GPU_GLES2_CONFORM_TEST_CONTEXT_H_
6 #define GPU_GLES2_CONFORM_TEST_CONTEXT_H_ 6 #define GPU_GLES2_CONFORM_TEST_CONTEXT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 uint64_t GenerateFenceSyncRelease() override; 77 uint64_t GenerateFenceSyncRelease() override;
78 bool IsFenceSyncRelease(uint64_t release) override; 78 bool IsFenceSyncRelease(uint64_t release) override;
79 bool IsFenceSyncFlushed(uint64_t release) override; 79 bool IsFenceSyncFlushed(uint64_t release) override;
80 bool IsFenceSyncFlushReceived(uint64_t release) override; 80 bool IsFenceSyncFlushReceived(uint64_t release) override;
81 void SignalSyncToken(const gpu::SyncToken& sync_token, 81 void SignalSyncToken(const gpu::SyncToken& sync_token,
82 const base::Closure& callback) override; 82 const base::Closure& callback) override;
83 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override; 83 bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override;
84 84
85 // Called by ThreadState to set the needed global variables when this context 85 // Called by ThreadState to set the needed global variables when this context
86 // is current. 86 // is current.
87 void ApplyCurrentContext(gfx::GLSurface* current_surface); 87 void ApplyCurrentContext(gl::GLSurface* current_surface);
88 static void ApplyContextReleased(); 88 static void ApplyContextReleased();
89 89
90 private: 90 private:
91 friend class base::RefCountedThreadSafe<Context>; 91 friend class base::RefCountedThreadSafe<Context>;
92 ~Context() override; 92 ~Context() override;
93 bool CreateService(gfx::GLSurface* gl_surface); 93 bool CreateService(gl::GLSurface* gl_surface);
94 void DestroyService(); 94 void DestroyService();
95 // Returns true if the object has GL service, either a working one or one 95 // Returns true if the object has GL service, either a working one or one
96 // that has lost its GL context. 96 // that has lost its GL context.
97 bool HasService() const; 97 bool HasService() const;
98 void MarkServiceContextLost(); 98 void MarkServiceContextLost();
99 bool WasServiceContextLost() const; 99 bool WasServiceContextLost() const;
100 bool IsCompatibleSurface(Surface* surface) const; 100 bool IsCompatibleSurface(Surface* surface) const;
101 bool Flush(gfx::GLSurface* gl_surface); 101 bool Flush(gl::GLSurface* gl_surface);
102 102
103 Display* display_; 103 Display* display_;
104 const Config* config_; 104 const Config* config_;
105 bool is_current_in_some_thread_; 105 bool is_current_in_some_thread_;
106 bool is_destroyed_; 106 bool is_destroyed_;
107 gpu::GpuPreferences gpu_preferences_; 107 gpu::GpuPreferences gpu_preferences_;
108 const gpu::GpuDriverBugWorkarounds gpu_driver_bug_workarounds_; 108 const gpu::GpuDriverBugWorkarounds gpu_driver_bug_workarounds_;
109 std::unique_ptr<gpu::CommandBufferService> command_buffer_; 109 std::unique_ptr<gpu::CommandBufferService> command_buffer_;
110 std::unique_ptr<gpu::gles2::GLES2CmdHelper> gles2_cmd_helper_; 110 std::unique_ptr<gpu::gles2::GLES2CmdHelper> gles2_cmd_helper_;
111 std::unique_ptr<gpu::gles2::GLES2Decoder> decoder_; 111 std::unique_ptr<gpu::gles2::GLES2Decoder> decoder_;
112 std::unique_ptr<gpu::CommandExecutor> command_executor_; 112 std::unique_ptr<gpu::CommandExecutor> command_executor_;
113 std::unique_ptr<gpu::TransferBuffer> transfer_buffer_; 113 std::unique_ptr<gpu::TransferBuffer> transfer_buffer_;
114 114
115 scoped_refptr<gfx::GLContext> gl_context_; 115 scoped_refptr<gl::GLContext> gl_context_;
116 116
117 std::unique_ptr<gpu::gles2::GLES2Interface> client_gl_context_; 117 std::unique_ptr<gpu::gles2::GLES2Interface> client_gl_context_;
118 DISALLOW_COPY_AND_ASSIGN(Context); 118 DISALLOW_COPY_AND_ASSIGN(Context);
119 }; 119 };
120 120
121 } // namespace egl 121 } // namespace egl
122 122
123 #endif // GPU_GLES2_CONFORM_TEST_CONTEXT_H_ 123 #endif // GPU_GLES2_CONFORM_TEST_CONTEXT_H_
OLDNEW
« no previous file with comments | « gpu/config/gpu_info_collector_win.cc ('k') | gpu/gles2_conform_support/egl/context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698