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

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

Issue 1858853002: Rename SharedRendererState to RenderThreadManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix rebase 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 #include "android_webview/browser/test/fake_window.h" 5 #include "android_webview/browser/test/fake_window.h"
6 6
7 #include "android_webview/browser/browser_view_renderer.h" 7 #include "android_webview/browser/browser_view_renderer.h"
8 #include "android_webview/browser/child_frame.h" 8 #include "android_webview/browser/child_frame.h"
9 #include "android_webview/browser/shared_renderer_state.h" 9 #include "android_webview/browser/render_thread_manager.h"
10 #include "base/location.h" 10 #include "base/location.h"
11 #include "base/synchronization/waitable_event.h" 11 #include "base/synchronization/waitable_event.h"
12 #include "base/thread_task_runner_handle.h" 12 #include "base/thread_task_runner_handle.h"
13 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "ui/gl/gl_bindings.h" 14 #include "ui/gl/gl_bindings.h"
15 15
16 namespace android_webview { 16 namespace android_webview {
17 17
18 class FakeWindow::ScopedMakeCurrent { 18 class FakeWindow::ScopedMakeCurrent {
19 public: 19 public:
(...skipping 14 matching lines...) Expand all
34 eglMakeCurrent(view_root_->surface_->GetDisplay(), EGL_NO_SURFACE, 34 eglMakeCurrent(view_root_->surface_->GetDisplay(), EGL_NO_SURFACE,
35 EGL_NO_SURFACE, EGL_NO_CONTEXT); 35 EGL_NO_SURFACE, EGL_NO_CONTEXT);
36 view_root_->context_->ReleaseCurrent(view_root_->surface_.get()); 36 view_root_->context_->ReleaseCurrent(view_root_->surface_.get());
37 } 37 }
38 38
39 private: 39 private:
40 FakeWindow* view_root_; 40 FakeWindow* view_root_;
41 }; 41 };
42 42
43 FakeWindow::FakeWindow(BrowserViewRenderer* view, 43 FakeWindow::FakeWindow(BrowserViewRenderer* view,
44 SharedRendererState* functor, 44 RenderThreadManager* functor,
45 WindowHooks* hooks, 45 WindowHooks* hooks,
46 gfx::Rect location) 46 gfx::Rect location)
47 : view_(view), 47 : view_(view),
48 hooks_(hooks), 48 hooks_(hooks),
49 surface_size_(100, 100), 49 surface_size_(100, 100),
50 location_(location), 50 location_(location),
51 on_draw_hardware_pending_(false), 51 on_draw_hardware_pending_(false),
52 functor_(functor), 52 functor_(functor),
53 context_current_(false), 53 context_current_(false),
54 weak_ptr_factory_(this) { 54 weak_ptr_factory_(this) {
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 surface_ = nullptr; 211 surface_ = nullptr;
212 } 212 }
213 sync->Signal(); 213 sync->Signal();
214 } 214 }
215 215
216 void FakeWindow::CheckCurrentlyOnRT() { 216 void FakeWindow::CheckCurrentlyOnRT() {
217 DCHECK(rt_checker_.CalledOnValidSequencedThread()); 217 DCHECK(rt_checker_.CalledOnValidSequencedThread());
218 } 218 }
219 219
220 } // namespace android_webview 220 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/test/fake_window.h ('k') | android_webview/browser/test/rendering_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698