| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 OutputSurfaceClient* client_ = nullptr; | 112 OutputSurfaceClient* client_ = nullptr; |
| 113 std::unique_ptr<OutputSurfaceFrame> last_sent_frame_; | 113 std::unique_ptr<OutputSurfaceFrame> last_sent_frame_; |
| 114 size_t num_sent_frames_ = 0; | 114 size_t num_sent_frames_ = 0; |
| 115 bool has_external_stencil_test_ = false; | 115 bool has_external_stencil_test_ = false; |
| 116 bool suspended_for_recycle_ = false; | 116 bool suspended_for_recycle_ = false; |
| 117 GLint framebuffer_ = 0; | 117 GLint framebuffer_ = 0; |
| 118 GLenum framebuffer_format_ = 0; | 118 GLenum framebuffer_format_ = 0; |
| 119 OverlayCandidateValidator* overlay_candidate_validator_ = nullptr; | 119 OverlayCandidateValidator* overlay_candidate_validator_ = nullptr; |
| 120 bool last_swap_rect_valid_ = false; | 120 bool last_swap_rect_valid_ = false; |
| 121 gfx::Rect last_swap_rect_; | 121 gfx::Rect last_swap_rect_; |
| 122 |
| 123 private: |
| 124 void SwapBuffersCallback(); |
| 125 |
| 126 base::WeakPtrFactory<FakeOutputSurface> weak_ptr_factory_; |
| 122 }; | 127 }; |
| 123 | 128 |
| 124 } // namespace cc | 129 } // namespace cc |
| 125 | 130 |
| 126 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ | 131 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ |
| OLD | NEW |