| OLD | NEW | 
|---|
| 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 GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 
| 6 #define GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 6 #define GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 
| 7 | 7 | 
| 8 #include <stddef.h> | 8 #include <stddef.h> | 
| 9 #include <stdint.h> | 9 #include <stdint.h> | 
| 10 | 10 | 
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 141   int32_t GetExtraCommandBufferData() const override; | 141   int32_t GetExtraCommandBufferData() const override; | 
| 142   uint64_t GenerateFenceSyncRelease() override; | 142   uint64_t GenerateFenceSyncRelease() override; | 
| 143   bool IsFenceSyncRelease(uint64_t release) override; | 143   bool IsFenceSyncRelease(uint64_t release) override; | 
| 144   bool IsFenceSyncFlushed(uint64_t release) override; | 144   bool IsFenceSyncFlushed(uint64_t release) override; | 
| 145   bool IsFenceSyncFlushReceived(uint64_t release) override; | 145   bool IsFenceSyncFlushReceived(uint64_t release) override; | 
| 146   bool IsFenceSyncReleased(uint64_t release) override; | 146   bool IsFenceSyncReleased(uint64_t release) override; | 
| 147   void SignalSyncToken(const gpu::SyncToken& sync_token, | 147   void SignalSyncToken(const gpu::SyncToken& sync_token, | 
| 148                        const base::Closure& callback) override; | 148                        const base::Closure& callback) override; | 
| 149   void WaitSyncTokenHint(const gpu::SyncToken& sync_token) override; | 149   void WaitSyncTokenHint(const gpu::SyncToken& sync_token) override; | 
| 150   bool CanWaitUnverifiedSyncToken(const gpu::SyncToken& sync_token) override; | 150   bool CanWaitUnverifiedSyncToken(const gpu::SyncToken& sync_token) override; | 
|  | 151   void AddLatencyInfo( | 
|  | 152       const std::vector<ui::LatencyInfo>& latency_info) override; | 
| 151 | 153 | 
| 152  private: | 154  private: | 
| 153   void PumpCommands(); | 155   void PumpCommands(); | 
| 154   bool GetBufferChanged(int32_t transfer_buffer_id); | 156   bool GetBufferChanged(int32_t transfer_buffer_id); | 
| 155   void SetupBaseContext(); | 157   void SetupBaseContext(); | 
| 156   void OnFenceSyncRelease(uint64_t release); | 158   void OnFenceSyncRelease(uint64_t release); | 
| 157   bool OnWaitSyncToken(const SyncToken& sync_token); | 159   bool OnWaitSyncToken(const SyncToken& sync_token); | 
| 158 | 160 | 
| 159   gpu::GpuPreferences gpu_preferences_; | 161   gpu::GpuPreferences gpu_preferences_; | 
| 160 | 162 | 
| (...skipping 23 matching lines...) Expand all  Loading... | 
| 184   // Used on Android to virtualize GL for all contexts. | 186   // Used on Android to virtualize GL for all contexts. | 
| 185   static int use_count_; | 187   static int use_count_; | 
| 186   static scoped_refptr<gl::GLShareGroup>* base_share_group_; | 188   static scoped_refptr<gl::GLShareGroup>* base_share_group_; | 
| 187   static scoped_refptr<gl::GLSurface>* base_surface_; | 189   static scoped_refptr<gl::GLSurface>* base_surface_; | 
| 188   static scoped_refptr<gl::GLContext>* base_context_; | 190   static scoped_refptr<gl::GLContext>* base_context_; | 
| 189 }; | 191 }; | 
| 190 | 192 | 
| 191 }  // namespace gpu | 193 }  // namespace gpu | 
| 192 | 194 | 
| 193 #endif  // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 195 #endif  // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 
| OLD | NEW | 
|---|