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

Side by Side Diff: android_webview/browser/test/fake_window.h

Issue 1904453004: Transfer DrawGLFunctor ownership from AwContents to AwGLFunctor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_TEST_FAKE_WINDOW_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_TEST_FAKE_WINDOW_H_
6 #define ANDROID_WEBVIEW_BROWSER_TEST_FAKE_WINDOW_H_ 6 #define ANDROID_WEBVIEW_BROWSER_TEST_FAKE_WINDOW_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "android_webview/public/browser/draw_gl.h" 10 #include "android_webview/public/browser/draw_gl.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 public: 46 public:
47 FakeWindow(BrowserViewRenderer* view, 47 FakeWindow(BrowserViewRenderer* view,
48 RenderThreadManager* functor, 48 RenderThreadManager* functor,
49 WindowHooks* hooks, 49 WindowHooks* hooks,
50 gfx::Rect location); 50 gfx::Rect location);
51 ~FakeWindow(); 51 ~FakeWindow();
52 52
53 void Detach(); 53 void Detach();
54 54
55 // BrowserViewRendererClient methods. 55 // BrowserViewRendererClient methods.
56 void RequestDrawGL(bool wait_for_completion); 56 void RequestInvokeGL(bool wait_for_completion);
57 void PostInvalidate(); 57 void PostInvalidate();
58 const gfx::Size& surface_size() { return surface_size_; } 58 const gfx::Size& surface_size() { return surface_size_; }
59 59
60 private: 60 private:
61 class ScopedMakeCurrent; 61 class ScopedMakeCurrent;
62 62
63 void OnDrawHardware(); 63 void OnDrawHardware();
64 void CheckCurrentlyOnUIThread(); 64 void CheckCurrentlyOnUIThread();
65 void CreateRenderThreadIfNeeded(); 65 void CreateRenderThreadIfNeeded();
66 66
(...skipping 23 matching lines...) Expand all
90 bool context_current_; 90 bool context_current_;
91 91
92 base::WeakPtrFactory<FakeWindow> weak_ptr_factory_; 92 base::WeakPtrFactory<FakeWindow> weak_ptr_factory_;
93 93
94 DISALLOW_COPY_AND_ASSIGN(FakeWindow); 94 DISALLOW_COPY_AND_ASSIGN(FakeWindow);
95 }; 95 };
96 96
97 } // namespace android_webview 97 } // namespace android_webview
98 98
99 #endif // ANDROID_WEBVIEW_BROWSER_TEST_FAKE_WINDOW_H_ 99 #endif // ANDROID_WEBVIEW_BROWSER_TEST_FAKE_WINDOW_H_
OLDNEW
« no previous file with comments | « android_webview/browser/render_thread_manager_client.h ('k') | android_webview/browser/test/fake_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698