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

Side by Side Diff: cc/test/fake_output_surface_client.h

Issue 1052103002: Revert of cc: Make scheduling be driven by vsync for android webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « cc/test/fake_output_surface.h ('k') | cc/test/layer_tree_test.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_ 5 #ifndef CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_
6 #define CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_ 6 #define CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_
7 7
8 #include "cc/output/managed_memory_policy.h" 8 #include "cc/output/managed_memory_policy.h"
9 #include "cc/output/output_surface_client.h" 9 #include "cc/output/output_surface_client.h"
10 10
(...skipping 28 matching lines...) Expand all
39 void DidLoseOutputSurface() override; 39 void DidLoseOutputSurface() override;
40 void SetExternalDrawConstraints( 40 void SetExternalDrawConstraints(
41 const gfx::Transform& transform, 41 const gfx::Transform& transform,
42 const gfx::Rect& viewport, 42 const gfx::Rect& viewport,
43 const gfx::Rect& clip, 43 const gfx::Rect& clip,
44 const gfx::Rect& viewport_rect_for_tile_priority, 44 const gfx::Rect& viewport_rect_for_tile_priority,
45 const gfx::Transform& transform_for_tile_priority, 45 const gfx::Transform& transform_for_tile_priority,
46 bool resourceless_software_draw) override {} 46 bool resourceless_software_draw) override {}
47 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override; 47 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override;
48 void SetTreeActivationCallback(const base::Closure&) override {} 48 void SetTreeActivationCallback(const base::Closure&) override {}
49 void OnDraw() override {}
50 49
51 int swap_count() { return swap_count_; } 50 int swap_count() { return swap_count_; }
52 51
53 bool deferred_initialize_called() { 52 bool deferred_initialize_called() {
54 return deferred_initialize_called_; 53 return deferred_initialize_called_;
55 } 54 }
56 55
57 bool did_lose_output_surface_called() { 56 bool did_lose_output_surface_called() {
58 return did_lose_output_surface_called_; 57 return did_lose_output_surface_called_;
59 } 58 }
60 59
61 const ManagedMemoryPolicy& memory_policy() const { return memory_policy_; } 60 const ManagedMemoryPolicy& memory_policy() const { return memory_policy_; }
62 61
63 private: 62 private:
64 OutputSurface* output_surface_; 63 OutputSurface* output_surface_;
65 int swap_count_; 64 int swap_count_;
66 bool deferred_initialize_called_; 65 bool deferred_initialize_called_;
67 bool did_lose_output_surface_called_; 66 bool did_lose_output_surface_called_;
68 ManagedMemoryPolicy memory_policy_; 67 ManagedMemoryPolicy memory_policy_;
69 }; 68 };
70 69
71 } // namespace cc 70 } // namespace cc
72 71
73 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_ 72 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/test/fake_output_surface.h ('k') | cc/test/layer_tree_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698