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

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

Issue 817603002: cc: Make scheduling be driven by vsync for android webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase compile errors. Created 5 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
« no previous file with comments | « content/public/browser/android/synchronous_compositor_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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 {}
34 35
35 private: 36 private:
36 SynchronousCompositorClient* client_; 37 SynchronousCompositorClient* client_;
37 bool hardware_initialized_; 38 bool hardware_initialized_;
38 39
39 DISALLOW_COPY_AND_ASSIGN(TestSynchronousCompositor); 40 DISALLOW_COPY_AND_ASSIGN(TestSynchronousCompositor);
40 }; 41 };
41 42
42 } // namespace content 43 } // namespace content
43 44
44 #endif // CONTENT_PUBLIC_TEST_TEST_SYNCHRONOUS_COMPOSITOR_ANDROID_H_ 45 #endif // CONTENT_PUBLIC_TEST_TEST_SYNCHRONOUS_COMPOSITOR_ANDROID_H_
OLDNEW
« no previous file with comments | « content/public/browser/android/synchronous_compositor_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698