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

Side by Side Diff: cc/test/fake_output_surface.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: Created 6 years 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_H_ 5 #ifndef CC_TEST_FAKE_OUTPUT_SURFACE_H_
6 #define CC_TEST_FAKE_OUTPUT_SURFACE_H_ 6 #define CC_TEST_FAKE_OUTPUT_SURFACE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 return surface.Pass(); 89 return surface.Pass();
90 } 90 }
91 91
92 CompositorFrame& last_sent_frame() { return last_sent_frame_; } 92 CompositorFrame& last_sent_frame() { return last_sent_frame_; }
93 size_t num_sent_frames() { return num_sent_frames_; } 93 size_t num_sent_frames() { return num_sent_frames_; }
94 94
95 void SwapBuffers(CompositorFrame* frame) override; 95 void SwapBuffers(CompositorFrame* frame) override;
96 96
97 bool BindToClient(OutputSurfaceClient* client) override; 97 bool BindToClient(OutputSurfaceClient* client) override;
98 98
99 void Invalidate() override;
100
99 using OutputSurface::ReleaseGL; 101 using OutputSurface::ReleaseGL;
100 using OutputSurface::InitializeAndSetContext3d; 102 using OutputSurface::InitializeAndSetContext3d;
101 103
102 void SetTreeActivationCallback(const base::Closure& callback); 104 void SetTreeActivationCallback(const base::Closure& callback);
103 105
104 const TransferableResourceArray& resources_held_by_parent() { 106 const TransferableResourceArray& resources_held_by_parent() {
105 return resources_held_by_parent_; 107 return resources_held_by_parent_;
106 } 108 }
107 109
108 void ReturnResource(unsigned id, CompositorFrameAck* ack); 110 void ReturnResource(unsigned id, CompositorFrameAck* ack);
(...skipping 30 matching lines...) Expand all
139 size_t num_sent_frames_; 141 size_t num_sent_frames_;
140 bool has_external_stencil_test_; 142 bool has_external_stencil_test_;
141 TransferableResourceArray resources_held_by_parent_; 143 TransferableResourceArray resources_held_by_parent_;
142 scoped_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind_; 144 scoped_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind_;
143 gfx::Rect last_swap_rect_; 145 gfx::Rect last_swap_rect_;
144 }; 146 };
145 147
146 } // namespace cc 148 } // namespace cc
147 149
148 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ 150 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698