Fix build for use_aura=0
[chromium-blink-merge.git] / android_webview / browser / gl_view_renderer_manager.h
blob67595fbb4ae9461cd551bd355910cf174a63bb98
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
3 // found in the LICENSE file.
5 #ifndef ANDROID_WEBVIEW_BROWSER_GL_VIEW_RENDERER_MANAGER_H_
6 #define ANDROID_WEBVIEW_BROWSER_GL_VIEW_RENDERER_MANAGER_H_
8 #include <list>
10 #include "base/basictypes.h"
12 namespace android_webview {
14 class BrowserViewRenderer;
16 class GLViewRendererManager {
17 typedef std::list<BrowserViewRenderer*> ListType;
18 public:
19 typedef ListType::iterator Key;
21 GLViewRendererManager();
22 ~GLViewRendererManager();
24 // If |key| is NullKey(), then |view| is inserted at the front and a new key
25 // is returned. Otherwise |key| must point to |view| which is moved to the
26 // front.
27 Key DidDrawGL(Key key, BrowserViewRenderer* view);
29 void NoLongerExpectsDrawGL(Key key);
31 BrowserViewRenderer* GetMostRecentlyDrawn() const;
33 Key NullKey();
35 private:
36 ListType mru_list_;
38 DISALLOW_COPY_AND_ASSIGN(GLViewRendererManager);
41 } // namespace android_webview
43 #endif // ANDROID_WEBVIEW_BROWSER_GL_VIEW_RENDERER_MANAGER_H_