| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_SCOPED_VISIBILITY_IMPL_H_ |
| 6 #define GPU_COMMAND_BUFFER_CLIENT_SCOPED_VISIBILITY_IMPL_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "gpu/command_buffer/client/context_support.h" |
| 11 #include "gpu/gpu_export.h" |
| 12 |
| 13 namespace gpu { |
| 14 |
| 15 class GPU_EXPORT ScopedVisibilityImpl |
| 16 : public ContextSupport::ScopedVisibility { |
| 17 public: |
| 18 explicit ScopedVisibilityImpl(ContextSupport* context_support); |
| 19 ~ScopedVisibilityImpl(); |
| 20 void Release(ContextSupport* context_support); |
| 21 |
| 22 private: |
| 23 // |initial_context_support_| is just stored/used for sanity-checking Release. |
| 24 const ContextSupport* const initial_context_support_; |
| 25 bool released_; |
| 26 }; |
| 27 |
| 28 } // namespace gpu |
| 29 |
| 30 #endif // GPU_COMMAND_BUFFER_CLIENT_SCOPED_VISIBILITY_IMPL_H_ |
| OLD | NEW |