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

Side by Side Diff: gpu/command_buffer/client/scoped_visibility_impl.h

Issue 2252163003: Update Context Client Visibility to use Scoped Pattern (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 4 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698