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_
10 #include "base/basictypes.h"
12 namespace android_webview
{
14 class BrowserViewRenderer
;
16 class GLViewRendererManager
{
17 typedef std::list
<BrowserViewRenderer
*> ListType
;
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
27 Key
DidDrawGL(Key key
, BrowserViewRenderer
* view
);
29 void NoLongerExpectsDrawGL(Key key
);
31 BrowserViewRenderer
* GetMostRecentlyDrawn() const;
38 DISALLOW_COPY_AND_ASSIGN(GLViewRendererManager
);
41 } // namespace android_webview
43 #endif // ANDROID_WEBVIEW_BROWSER_GL_VIEW_RENDERER_MANAGER_H_