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

Side by Side Diff: android_webview/browser/test/rendering_test.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_RENDERING_TEST_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_
6 #define ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ 6 #define ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "android_webview/browser/browser_view_renderer_client.h" 10 #include "android_webview/browser/browser_view_renderer_client.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 void UpdateScrollState(const gfx::Vector2d& max_scroll_offset, 45 void UpdateScrollState(const gfx::Vector2d& max_scroll_offset,
46 const gfx::SizeF& contents_size_dip, 46 const gfx::SizeF& contents_size_dip,
47 float page_scale_factor, 47 float page_scale_factor,
48 float min_page_scale_factor, 48 float min_page_scale_factor,
49 float max_page_scale_factor) override {} 49 float max_page_scale_factor) override {}
50 void DidOverscroll(const gfx::Vector2d& overscroll_delta, 50 void DidOverscroll(const gfx::Vector2d& overscroll_delta,
51 const gfx::Vector2dF& overscroll_velocity) override {} 51 const gfx::Vector2dF& overscroll_velocity) override {}
52 52
53 // RenderThreadManagerClient overrides. 53 // RenderThreadManagerClient overrides.
54 void OnParentDrawConstraintsUpdated() override; 54 void OnParentDrawConstraintsUpdated() override;
55 bool RequestDrawGL(bool wait_for_completion) override; 55 bool RequestInvokeGL(bool wait_for_completion) override;
56 void DetachFunctorFromView() override; 56 void DetachFunctorFromView() override;
57 57
58 // WindowHooks overrides. 58 // WindowHooks overrides.
59 void WillOnDraw() override; 59 void WillOnDraw() override;
60 void DidOnDraw(bool success) override {} 60 void DidOnDraw(bool success) override {}
61 void WillSyncOnRT(RenderThreadManager* functor) override {} 61 void WillSyncOnRT(RenderThreadManager* functor) override {}
62 void DidSyncOnRT(RenderThreadManager* functor) override {} 62 void DidSyncOnRT(RenderThreadManager* functor) override {}
63 void WillProcessOnRT(RenderThreadManager* functor) override {} 63 void WillProcessOnRT(RenderThreadManager* functor) override {}
64 void DidProcessOnRT(RenderThreadManager* functor) override {} 64 void DidProcessOnRT(RenderThreadManager* functor) override {}
65 bool WillDrawOnRT(RenderThreadManager* functor, 65 bool WillDrawOnRT(RenderThreadManager* functor,
(...skipping 28 matching lines...) Expand all
94 DISALLOW_COPY_AND_ASSIGN(RenderingTest); 94 DISALLOW_COPY_AND_ASSIGN(RenderingTest);
95 }; 95 };
96 96
97 #define RENDERING_TEST_F(TEST_FIXTURE_NAME) \ 97 #define RENDERING_TEST_F(TEST_FIXTURE_NAME) \
98 TEST_F(TEST_FIXTURE_NAME, RunTest) { RunTest(); } \ 98 TEST_F(TEST_FIXTURE_NAME, RunTest) { RunTest(); } \
99 class NeedsSemicolon##TEST_FIXTURE_NAME {} 99 class NeedsSemicolon##TEST_FIXTURE_NAME {}
100 100
101 } // namespace android_webview 101 } // namespace android_webview
102 102
103 #endif // ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ 103 #endif // ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_
OLDNEW
« no previous file with comments | « android_webview/browser/test/fake_window.cc ('k') | android_webview/browser/test/rendering_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698