OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |