OLD | NEW |
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/browser/render_thread_manager_client.h" | 10 #include "android_webview/browser/render_thread_manager_client.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 // UI thread members. | 81 // UI thread members. |
82 gfx::Rect location_; | 82 gfx::Rect location_; |
83 bool on_draw_hardware_pending_; | 83 bool on_draw_hardware_pending_; |
84 base::SequenceChecker ui_checker_; | 84 base::SequenceChecker ui_checker_; |
85 | 85 |
86 // Render thread members. | 86 // Render thread members. |
87 std::unique_ptr<base::Thread> render_thread_; | 87 std::unique_ptr<base::Thread> render_thread_; |
88 base::SequenceChecker rt_checker_; | 88 base::SequenceChecker rt_checker_; |
89 scoped_refptr<base::SingleThreadTaskRunner> render_thread_loop_; | 89 scoped_refptr<base::SingleThreadTaskRunner> render_thread_loop_; |
90 scoped_refptr<gfx::GLSurface> surface_; | 90 scoped_refptr<gl::GLSurface> surface_; |
91 scoped_refptr<gfx::GLContext> context_; | 91 scoped_refptr<gl::GLContext> context_; |
92 bool context_current_; | 92 bool context_current_; |
93 | 93 |
94 base::WeakPtrFactory<FakeWindow> weak_ptr_factory_; | 94 base::WeakPtrFactory<FakeWindow> weak_ptr_factory_; |
95 | 95 |
96 DISALLOW_COPY_AND_ASSIGN(FakeWindow); | 96 DISALLOW_COPY_AND_ASSIGN(FakeWindow); |
97 }; | 97 }; |
98 | 98 |
99 class FakeFunctor : public RenderThreadManagerClient { | 99 class FakeFunctor : public RenderThreadManagerClient { |
100 public: | 100 public: |
101 using DrawGLCallback = base::Callback<void(AwDrawGLInfo*)>; | 101 using DrawGLCallback = base::Callback<void(AwDrawGLInfo*)>; |
(...skipping 16 matching lines...) Expand all Loading... |
118 private: | 118 private: |
119 FakeWindow* window_; | 119 FakeWindow* window_; |
120 DrawGLCallback callback_; | 120 DrawGLCallback callback_; |
121 std::unique_ptr<RenderThreadManager> render_thread_manager_; | 121 std::unique_ptr<RenderThreadManager> render_thread_manager_; |
122 gfx::Rect committed_location_; | 122 gfx::Rect committed_location_; |
123 }; | 123 }; |
124 | 124 |
125 } // namespace android_webview | 125 } // namespace android_webview |
126 | 126 |
127 #endif // ANDROID_WEBVIEW_BROWSER_TEST_FAKE_WINDOW_H_ | 127 #endif // ANDROID_WEBVIEW_BROWSER_TEST_FAKE_WINDOW_H_ |
OLD | NEW |