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

Side by Side Diff: content/public/test/test_synchronous_compositor_android.h

Issue 1846653003: android webview: Keep zoom methods synchronous (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ipc comments 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 CONTENT_PUBLIC_TEST_TEST_SYNCHRONOUS_COMPOSITOR_ANDROID_H_ 5 #ifndef CONTENT_PUBLIC_TEST_TEST_SYNCHRONOUS_COMPOSITOR_ANDROID_H_
6 #define CONTENT_PUBLIC_TEST_TEST_SYNCHRONOUS_COMPOSITOR_ANDROID_H_ 6 #define CONTENT_PUBLIC_TEST_TEST_SYNCHRONOUS_COMPOSITOR_ANDROID_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 21 matching lines...) Expand all
32 const gfx::Rect& clip, 32 const gfx::Rect& clip,
33 const gfx::Rect& viewport_rect_for_tile_priority, 33 const gfx::Rect& viewport_rect_for_tile_priority,
34 const gfx::Transform& transform_for_tile_priority) override; 34 const gfx::Transform& transform_for_tile_priority) override;
35 void ReturnResources(uint32_t output_surface_id, 35 void ReturnResources(uint32_t output_surface_id,
36 const cc::CompositorFrameAck& frame_ack) override; 36 const cc::CompositorFrameAck& frame_ack) override;
37 bool DemandDrawSw(SkCanvas* canvas) override; 37 bool DemandDrawSw(SkCanvas* canvas) override;
38 void SetMemoryPolicy(size_t bytes_limit) override {} 38 void SetMemoryPolicy(size_t bytes_limit) override {}
39 void DidChangeRootLayerScrollOffset( 39 void DidChangeRootLayerScrollOffset(
40 const gfx::ScrollOffset& root_offset) override {} 40 const gfx::ScrollOffset& root_offset) override {}
41 void SetIsActive(bool is_active) override {} 41 void SetIsActive(bool is_active) override {}
42 void SynchronizeWithRenderer() override {}
42 void OnComputeScroll(base::TimeTicks animate_time) override {} 43 void OnComputeScroll(base::TimeTicks animate_time) override {}
43 44
44 void SetHardwareFrame(uint32_t output_surface_id, 45 void SetHardwareFrame(uint32_t output_surface_id,
45 scoped_ptr<cc::CompositorFrame> frame); 46 scoped_ptr<cc::CompositorFrame> frame);
46 47
47 struct ReturnedResources { 48 struct ReturnedResources {
48 ReturnedResources(); 49 ReturnedResources();
49 ~ReturnedResources(); 50 ~ReturnedResources();
50 51
51 uint32_t output_surface_id; 52 uint32_t output_surface_id;
52 cc::ReturnedResourceArray resources; 53 cc::ReturnedResourceArray resources;
53 }; 54 };
54 using FrameAckArray = std::vector<ReturnedResources>; 55 using FrameAckArray = std::vector<ReturnedResources>;
55 void SwapReturnedResources(FrameAckArray* array); 56 void SwapReturnedResources(FrameAckArray* array);
56 57
57 private: 58 private:
58 SynchronousCompositorClient* client_; 59 SynchronousCompositorClient* client_;
59 SynchronousCompositor::Frame hardware_frame_; 60 SynchronousCompositor::Frame hardware_frame_;
60 FrameAckArray frame_ack_array_; 61 FrameAckArray frame_ack_array_;
61 62
62 DISALLOW_COPY_AND_ASSIGN(TestSynchronousCompositor); 63 DISALLOW_COPY_AND_ASSIGN(TestSynchronousCompositor);
63 }; 64 };
64 65
65 } // namespace content 66 } // namespace content
66 67
67 #endif // CONTENT_PUBLIC_TEST_TEST_SYNCHRONOUS_COMPOSITOR_ANDROID_H_ 68 #endif // CONTENT_PUBLIC_TEST_TEST_SYNCHRONOUS_COMPOSITOR_ANDROID_H_
OLDNEW
« no previous file with comments | « content/public/browser/android/synchronous_compositor.h ('k') | content/renderer/android/synchronous_compositor_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698