| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 OutputSurfaceClient* client() { return client_; } | 59 OutputSurfaceClient* client() { return client_; } |
| 60 | 60 |
| 61 void BindToClient(OutputSurfaceClient* client) override; | 61 void BindToClient(OutputSurfaceClient* client) override; |
| 62 void EnsureBackbuffer() override {} | 62 void EnsureBackbuffer() override {} |
| 63 void DiscardBackbuffer() override {} | 63 void DiscardBackbuffer() override {} |
| 64 void BindFramebuffer() override; | 64 void BindFramebuffer() override; |
| 65 void Reshape(const gfx::Size& size, | 65 void Reshape(const gfx::Size& size, |
| 66 float device_scale_factor, | 66 float device_scale_factor, |
| 67 const gfx::ColorSpace& color_space, | 67 const gfx::ColorSpace& color_space, |
| 68 bool has_alpha) override; | 68 bool has_alpha, |
| 69 bool use_stencil) override; |
| 69 void SwapBuffers(OutputSurfaceFrame frame) override; | 70 void SwapBuffers(OutputSurfaceFrame frame) override; |
| 70 uint32_t GetFramebufferCopyTextureFormat() override; | 71 uint32_t GetFramebufferCopyTextureFormat() override; |
| 71 bool HasExternalStencilTest() const override; | 72 bool HasExternalStencilTest() const override; |
| 72 void ApplyExternalStencil() override {} | 73 void ApplyExternalStencil() override {} |
| 73 bool SurfaceIsSuspendForRecycle() const override; | 74 bool SurfaceIsSuspendForRecycle() const override; |
| 74 OverlayCandidateValidator* GetOverlayCandidateValidator() const override; | 75 OverlayCandidateValidator* GetOverlayCandidateValidator() const override; |
| 75 bool IsDisplayedAsOverlayPlane() const override; | 76 bool IsDisplayedAsOverlayPlane() const override; |
| 76 unsigned GetOverlayTextureId() const override; | 77 unsigned GetOverlayTextureId() const override; |
| 77 | 78 |
| 78 void set_framebuffer(GLint framebuffer, GLenum format) { | 79 void set_framebuffer(GLint framebuffer, GLenum format) { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 116 |
| 116 private: | 117 private: |
| 117 void SwapBuffersAck(); | 118 void SwapBuffersAck(); |
| 118 | 119 |
| 119 base::WeakPtrFactory<FakeOutputSurface> weak_ptr_factory_; | 120 base::WeakPtrFactory<FakeOutputSurface> weak_ptr_factory_; |
| 120 }; | 121 }; |
| 121 | 122 |
| 122 } // namespace cc | 123 } // namespace cc |
| 123 | 124 |
| 124 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ | 125 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ |
| OLD | NEW |