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

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

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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/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
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
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_
OLDNEW
« no previous file with comments | « android_webview/browser/scoped_app_gl_state_restore.cc ('k') | android_webview/browser/test/fake_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698