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

Side by Side Diff: mojo/gpu/gl_context_owner.h

Issue 761503004: Fix several leaks in the Sky compositor (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fix typo Created 6 years 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 2014 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 MOJO_GPU_GL_CONTEXT_OWNER_H_
6 #define MOJO_GPU_GL_CONTEXT_OWNER_H_
7
8 #include "base/memory/weak_ptr.h"
9
10 namespace mojo {
11 class GLContext;
12 class Shell;
13
14 class GLContextOwner {
15 public:
16 explicit GLContextOwner(mojo::Shell* shell);
17 ~GLContextOwner();
18
19 const base::WeakPtr<mojo::GLContext>& context() const {
20 return context_;
21 }
22
23 private:
24 base::WeakPtr<mojo::GLContext> context_;
25
26 DISALLOW_COPY_AND_ASSIGN(GLContextOwner);
27 };
28
29 } // namespace mojo
30
31 #endif // MOJO_GPU_GL_CONTEXT_OWNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698