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

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

Issue 2418383002: sync compositor: Signal async frame on IO thread (Closed)
Patch Set: typo Created 4 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 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 <memory> 10 #include <memory>
(...skipping 10 matching lines...) Expand all
21 TestSynchronousCompositor(int process_id, int routing_id); 21 TestSynchronousCompositor(int process_id, int routing_id);
22 ~TestSynchronousCompositor() override; 22 ~TestSynchronousCompositor() override;
23 23
24 void SetClient(SynchronousCompositorClient* client); 24 void SetClient(SynchronousCompositorClient* client);
25 25
26 // SynchronousCompositor overrides. 26 // SynchronousCompositor overrides.
27 SynchronousCompositor::Frame DemandDrawHw( 27 SynchronousCompositor::Frame DemandDrawHw(
28 const gfx::Size& viewport_size, 28 const gfx::Size& viewport_size,
29 const gfx::Rect& viewport_rect_for_tile_priority, 29 const gfx::Rect& viewport_rect_for_tile_priority,
30 const gfx::Transform& transform_for_tile_priority) override; 30 const gfx::Transform& transform_for_tile_priority) override;
31 void DemandDrawHwAsync( 31 scoped_refptr<FrameFuture> DemandDrawHwAsync(
32 const gfx::Size& viewport_size, 32 const gfx::Size& viewport_size,
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 compositor_frame_sink_id, 35 void ReturnResources(uint32_t compositor_frame_sink_id,
36 const cc::ReturnedResourceArray& resources) override; 36 const cc::ReturnedResourceArray& resources) 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 SynchronouslyZoomBy(float zoom_delta, 41 void SynchronouslyZoomBy(float zoom_delta,
(...skipping 20 matching lines...) Expand all
62 const int routing_id_; 62 const int routing_id_;
63 SynchronousCompositor::Frame hardware_frame_; 63 SynchronousCompositor::Frame hardware_frame_;
64 FrameAckArray frame_ack_array_; 64 FrameAckArray frame_ack_array_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(TestSynchronousCompositor); 66 DISALLOW_COPY_AND_ASSIGN(TestSynchronousCompositor);
67 }; 67 };
68 68
69 } // namespace content 69 } // namespace content
70 70
71 #endif // CONTENT_PUBLIC_TEST_TEST_SYNCHRONOUS_COMPOSITOR_ANDROID_H_ 71 #endif // CONTENT_PUBLIC_TEST_TEST_SYNCHRONOUS_COMPOSITOR_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698