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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 bool has_alpha, | 69 bool has_alpha, |
70 bool use_stencil) override; | 70 bool use_stencil) override; |
71 void SwapBuffers(OutputSurfaceFrame frame) override; | 71 void SwapBuffers(OutputSurfaceFrame frame) override; |
72 uint32_t GetFramebufferCopyTextureFormat() override; | 72 uint32_t GetFramebufferCopyTextureFormat() override; |
73 bool HasExternalStencilTest() const override; | 73 bool HasExternalStencilTest() const override; |
74 void ApplyExternalStencil() override {} | 74 void ApplyExternalStencil() override {} |
75 bool SurfaceIsSuspendForRecycle() const override; | 75 bool SurfaceIsSuspendForRecycle() const override; |
76 OverlayCandidateValidator* GetOverlayCandidateValidator() const override; | 76 OverlayCandidateValidator* GetOverlayCandidateValidator() const override; |
77 bool IsDisplayedAsOverlayPlane() const override; | 77 bool IsDisplayedAsOverlayPlane() const override; |
78 unsigned GetOverlayTextureId() const override; | 78 unsigned GetOverlayTextureId() const override; |
| 79 bool CanPartialDraw(const gfx::Rect& damage) override; |
79 | 80 |
80 void set_framebuffer(GLint framebuffer, GLenum format) { | 81 void set_framebuffer(GLint framebuffer, GLenum format) { |
81 framebuffer_ = framebuffer; | 82 framebuffer_ = framebuffer; |
82 framebuffer_format_ = format; | 83 framebuffer_format_ = format; |
83 } | 84 } |
84 | 85 |
85 void SetOverlayCandidateValidator(OverlayCandidateValidator* validator) { | 86 void SetOverlayCandidateValidator(OverlayCandidateValidator* validator) { |
86 overlay_candidate_validator_ = validator; | 87 overlay_candidate_validator_ = validator; |
87 } | 88 } |
88 | 89 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 121 |
121 private: | 122 private: |
122 void SwapBuffersAck(); | 123 void SwapBuffersAck(); |
123 | 124 |
124 base::WeakPtrFactory<FakeOutputSurface> weak_ptr_factory_; | 125 base::WeakPtrFactory<FakeOutputSurface> weak_ptr_factory_; |
125 }; | 126 }; |
126 | 127 |
127 } // namespace cc | 128 } // namespace cc |
128 | 129 |
129 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ | 130 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ |
OLD | NEW |