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

Side by Side Diff: android_webview/browser/gl_view_renderer_manager.h

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 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
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
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_
OLDNEW
« no previous file with comments | « android_webview/browser/deferred_gpu_command_service.cc ('k') | android_webview/browser/net/token_binding_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698