OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 ANDROID_WEBVIEW_BROWSER_GL_VIEW_RENDERER_MANAGER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_GL_VIEW_RENDERER_MANAGER_H_ |
6 #define ANDROID_WEBVIEW_BROWSER_GL_VIEW_RENDERER_MANAGER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_GL_VIEW_RENDERER_MANAGER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 // |key| must be already in manager. Move renderer corresponding to |key| to | 35 // |key| must be already in manager. Move renderer corresponding to |key| to |
36 // most recent. | 36 // most recent. |
37 void DidDrawGL(Key key); | 37 void DidDrawGL(Key key); |
38 | 38 |
39 void Remove(Key key); | 39 void Remove(Key key); |
40 | 40 |
41 RendererType GetMostRecentlyDrawn() const; | 41 RendererType GetMostRecentlyDrawn() const; |
42 | 42 |
43 private: | 43 private: |
44 friend struct base::DefaultLazyInstanceTraits<GLViewRendererManager>; | 44 friend struct base::LazyInstanceTraitsBase<GLViewRendererManager>; |
45 | 45 |
46 GLViewRendererManager(); | 46 GLViewRendererManager(); |
47 ~GLViewRendererManager(); | 47 ~GLViewRendererManager(); |
48 | 48 |
49 mutable base::Lock lock_; | 49 mutable base::Lock lock_; |
50 ListType mru_list_; | 50 ListType mru_list_; |
51 | 51 |
52 DISALLOW_COPY_AND_ASSIGN(GLViewRendererManager); | 52 DISALLOW_COPY_AND_ASSIGN(GLViewRendererManager); |
53 }; | 53 }; |
54 | 54 |
55 } // namespace android_webview | 55 } // namespace android_webview |
56 | 56 |
57 #endif // ANDROID_WEBVIEW_BROWSER_GL_VIEW_RENDERER_MANAGER_H_ | 57 #endif // ANDROID_WEBVIEW_BROWSER_GL_VIEW_RENDERER_MANAGER_H_ |
OLD | NEW |