OLD | NEW |
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 "content/public/browser/android/synchronous_compositor.h" | 8 #include "content/public/browser/android/synchronous_compositor.h" |
9 #include "content/public/browser/android/synchronous_compositor_client.h" | 9 #include "content/public/browser/android/synchronous_compositor_client.h" |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 gfx::Size surface_size, | 24 gfx::Size surface_size, |
25 const gfx::Transform& transform, | 25 const gfx::Transform& transform, |
26 gfx::Rect viewport, | 26 gfx::Rect viewport, |
27 gfx::Rect clip, | 27 gfx::Rect clip, |
28 gfx::Rect viewport_rect_for_tile_priority, | 28 gfx::Rect viewport_rect_for_tile_priority, |
29 const gfx::Transform& transform_for_tile_priority) override; | 29 const gfx::Transform& transform_for_tile_priority) override; |
30 void ReturnResources(const cc::CompositorFrameAck& frame_ack) override; | 30 void ReturnResources(const cc::CompositorFrameAck& frame_ack) override; |
31 bool DemandDrawSw(SkCanvas* canvas) override; | 31 bool DemandDrawSw(SkCanvas* canvas) override; |
32 void SetMemoryPolicy(size_t bytes_limit) override; | 32 void SetMemoryPolicy(size_t bytes_limit) override; |
33 void DidChangeRootLayerScrollOffset() override {} | 33 void DidChangeRootLayerScrollOffset() override {} |
34 void SetIsActive(bool is_active) override {} | |
35 | 34 |
36 private: | 35 private: |
37 SynchronousCompositorClient* client_; | 36 SynchronousCompositorClient* client_; |
38 bool hardware_initialized_; | 37 bool hardware_initialized_; |
39 | 38 |
40 DISALLOW_COPY_AND_ASSIGN(TestSynchronousCompositor); | 39 DISALLOW_COPY_AND_ASSIGN(TestSynchronousCompositor); |
41 }; | 40 }; |
42 | 41 |
43 } // namespace content | 42 } // namespace content |
44 | 43 |
45 #endif // CONTENT_PUBLIC_TEST_TEST_SYNCHRONOUS_COMPOSITOR_ANDROID_H_ | 44 #endif // CONTENT_PUBLIC_TEST_TEST_SYNCHRONOUS_COMPOSITOR_ANDROID_H_ |
OLD | NEW |