| 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_SERVICE_GL_CONTEXT_VIRTUAL_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GL_CONTEXT_VIRTUAL_H_ |
| 6 #define GPU_COMMAND_BUFFER_SERVICE_GL_CONTEXT_VIRTUAL_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_GL_CONTEXT_VIRTUAL_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 void ReleaseCurrent(gfx::GLSurface* surface) override; | 41 void ReleaseCurrent(gfx::GLSurface* surface) override; |
| 42 bool IsCurrent(gfx::GLSurface* surface) override; | 42 bool IsCurrent(gfx::GLSurface* surface) override; |
| 43 void* GetHandle() override; | 43 void* GetHandle() override; |
| 44 scoped_refptr<gfx::GPUTimingClient> CreateGPUTimingClient() override; | 44 scoped_refptr<gfx::GPUTimingClient> CreateGPUTimingClient() override; |
| 45 void OnSetSwapInterval(int interval) override; | 45 void OnSetSwapInterval(int interval) override; |
| 46 std::string GetExtensions() override; | 46 std::string GetExtensions() override; |
| 47 bool GetTotalGpuMemory(size_t* bytes) override; | 47 bool GetTotalGpuMemory(size_t* bytes) override; |
| 48 void SetSafeToForceGpuSwitch() override; | 48 void SetSafeToForceGpuSwitch() override; |
| 49 bool WasAllocatedUsingRobustnessExtension() override; | 49 bool WasAllocatedUsingRobustnessExtension() override; |
| 50 void SetUnbindFboOnMakeCurrent() override; | 50 void SetUnbindFboOnMakeCurrent() override; |
| 51 base::Closure GetStateWasDirtiedExternallyCallback() override; |
| 52 void RestoreStateIfDirtiedExternally() override; |
| 51 | 53 |
| 52 protected: | 54 protected: |
| 53 ~GLContextVirtual() override; | 55 ~GLContextVirtual() override; |
| 54 | 56 |
| 55 private: | 57 private: |
| 56 scoped_refptr<gfx::GLContext> shared_context_; | 58 scoped_refptr<gfx::GLContext> shared_context_; |
| 57 gfx::Display* display_; | 59 gfx::Display* display_; |
| 58 base::WeakPtr<gles2::GLES2Decoder> decoder_; | 60 base::WeakPtr<gles2::GLES2Decoder> decoder_; |
| 59 | 61 |
| 60 DISALLOW_COPY_AND_ASSIGN(GLContextVirtual); | 62 DISALLOW_COPY_AND_ASSIGN(GLContextVirtual); |
| 61 }; | 63 }; |
| 62 | 64 |
| 63 } // namespace gpu | 65 } // namespace gpu |
| 64 | 66 |
| 65 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_CONTEXT_VIRTUAL_H_ | 67 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_CONTEXT_VIRTUAL_H_ |
| OLD | NEW |