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/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "base/synchronization/lock.h" | 12 #include "base/synchronization/lock.h" |
13 #include "base/threading/platform_thread.h" | 13 #include "base/threading/platform_thread.h" |
14 | 14 |
15 namespace android_webview { | 15 namespace android_webview { |
16 | 16 |
17 class SharedRendererState; | 17 class CompositorProxy; |
18 | 18 |
19 class GLViewRendererManager { | 19 class GLViewRendererManager { |
20 public: | 20 public: |
21 typedef SharedRendererState* RendererType; | 21 typedef CompositorProxy* RendererType; |
22 | 22 |
23 private: | 23 private: |
24 typedef std::list<RendererType> ListType; | 24 typedef std::list<RendererType> ListType; |
25 | 25 |
26 public: | 26 public: |
27 typedef ListType::iterator Key; | 27 typedef ListType::iterator Key; |
28 | 28 |
29 static GLViewRendererManager* GetInstance(); | 29 static GLViewRendererManager* GetInstance(); |
30 | 30 |
31 Key NullKey(); | 31 Key NullKey(); |
(...skipping 16 matching lines...) Expand all Loading... |
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 |