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

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

Issue 2402173002: cc: Get rid of PostSwapBuffersComplete. (Closed)
Patch Set: postswap: fix-blimp-unittest-post-swap-acks Created 4 years, 2 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_compositor_frame_sink.cc ('k') | cc/test/fake_output_surface.cc » ('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 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 OutputSurfaceClient* client_ = nullptr; 116 OutputSurfaceClient* client_ = nullptr;
117 std::unique_ptr<OutputSurfaceFrame> last_sent_frame_; 117 std::unique_ptr<OutputSurfaceFrame> last_sent_frame_;
118 size_t num_sent_frames_ = 0; 118 size_t num_sent_frames_ = 0;
119 bool has_external_stencil_test_ = false; 119 bool has_external_stencil_test_ = false;
120 bool suspended_for_recycle_ = false; 120 bool suspended_for_recycle_ = false;
121 GLint framebuffer_ = 0; 121 GLint framebuffer_ = 0;
122 GLenum framebuffer_format_ = 0; 122 GLenum framebuffer_format_ = 0;
123 OverlayCandidateValidator* overlay_candidate_validator_ = nullptr; 123 OverlayCandidateValidator* overlay_candidate_validator_ = nullptr;
124 bool last_swap_rect_valid_ = false; 124 bool last_swap_rect_valid_ = false;
125 gfx::Rect last_swap_rect_; 125 gfx::Rect last_swap_rect_;
126
127 private:
128 void SwapBuffersCallback();
129
130 base::WeakPtrFactory<FakeOutputSurface> weak_ptr_factory_;
126 }; 131 };
127 132
128 } // namespace cc 133 } // namespace cc
129 134
130 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ 135 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/test/fake_compositor_frame_sink.cc ('k') | cc/test/fake_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698