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

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

Issue 1417893006: sync compositor: pass simple gfx types by const ref (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 "android_webview/browser/browser_view_renderer_client.h" 8 #include "android_webview/browser/browser_view_renderer_client.h"
9 #include "android_webview/browser/test/fake_window.h" 9 #include "android_webview/browser/test/fake_window.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 17 matching lines...) Expand all
28 class RenderingTest : public testing::Test, 28 class RenderingTest : public testing::Test,
29 public BrowserViewRendererClient, 29 public BrowserViewRendererClient,
30 public WindowHooks { 30 public WindowHooks {
31 public: 31 public:
32 // BrowserViewRendererClient overrides. 32 // BrowserViewRendererClient overrides.
33 bool RequestDrawGL(bool wait_for_completion) override; 33 bool RequestDrawGL(bool wait_for_completion) override;
34 void OnNewPicture() override; 34 void OnNewPicture() override;
35 void PostInvalidate() override; 35 void PostInvalidate() override;
36 void DetachFunctorFromView() override; 36 void DetachFunctorFromView() override;
37 gfx::Point GetLocationOnScreen() override; 37 gfx::Point GetLocationOnScreen() override;
38 void ScrollContainerViewTo(gfx::Vector2d new_value) override {} 38 void ScrollContainerViewTo(const gfx::Vector2d& new_value) override {}
39 void UpdateScrollState(gfx::Vector2d max_scroll_offset, 39 void UpdateScrollState(const gfx::Vector2d& max_scroll_offset,
40 gfx::SizeF contents_size_dip, 40 const gfx::SizeF& contents_size_dip,
41 float page_scale_factor, 41 float page_scale_factor,
42 float min_page_scale_factor, 42 float min_page_scale_factor,
43 float max_page_scale_factor) override {} 43 float max_page_scale_factor) override {}
44 void DidOverscroll(gfx::Vector2d overscroll_delta, 44 void DidOverscroll(const gfx::Vector2d& overscroll_delta,
45 gfx::Vector2dF overscroll_velocity) override {} 45 const gfx::Vector2dF& overscroll_velocity) override {}
46 void ParentDrawConstraintsUpdated( 46 void ParentDrawConstraintsUpdated(
47 const ParentCompositorDrawConstraints& draw_constraints) override {} 47 const ParentCompositorDrawConstraints& draw_constraints) override {}
48 // WindowHooks overrides. 48 // WindowHooks overrides.
49 void WillOnDraw() override; 49 void WillOnDraw() override;
50 void DidOnDraw(bool success) override {} 50 void DidOnDraw(bool success) override {}
51 void WillSyncOnRT(SharedRendererState* functor) override {} 51 void WillSyncOnRT(SharedRendererState* functor) override {}
52 void DidSyncOnRT(SharedRendererState* functor) override {} 52 void DidSyncOnRT(SharedRendererState* functor) override {}
53 void WillProcessOnRT(SharedRendererState* functor) override {} 53 void WillProcessOnRT(SharedRendererState* functor) override {}
54 void DidProcessOnRT(SharedRendererState* functor) override {} 54 void DidProcessOnRT(SharedRendererState* functor) override {}
55 bool WillDrawOnRT(SharedRendererState* functor, 55 bool WillDrawOnRT(SharedRendererState* functor,
(...skipping 26 matching lines...) Expand all
82 DISALLOW_COPY_AND_ASSIGN(RenderingTest); 82 DISALLOW_COPY_AND_ASSIGN(RenderingTest);
83 }; 83 };
84 84
85 #define RENDERING_TEST_F(TEST_FIXTURE_NAME) \ 85 #define RENDERING_TEST_F(TEST_FIXTURE_NAME) \
86 TEST_F(TEST_FIXTURE_NAME, RunTest) { RunTest(); } \ 86 TEST_F(TEST_FIXTURE_NAME, RunTest) { RunTest(); } \
87 class NeedsSemicolon##TEST_FIXTURE_NAME {} 87 class NeedsSemicolon##TEST_FIXTURE_NAME {}
88 88
89 } // namespace android_webview 89 } // namespace android_webview
90 90
91 #endif // ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_ 91 #endif // ANDROID_WEBVIEW_BROWSER_TEST_RENDERING_TEST_H_
OLDNEW
« no previous file with comments | « android_webview/browser/browser_view_renderer_client.h ('k') | android_webview/native/aw_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698