| 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 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 static std::unique_ptr<FakeOutputSurface> Create3d( | 40 static std::unique_ptr<FakeOutputSurface> Create3d( |
| 41 scoped_refptr<ContextProvider> context_provider, | 41 scoped_refptr<ContextProvider> context_provider, |
| 42 scoped_refptr<ContextProvider> worker_context_provider) { | 42 scoped_refptr<ContextProvider> worker_context_provider) { |
| 43 return base::WrapUnique(new FakeOutputSurface( | 43 return base::WrapUnique(new FakeOutputSurface( |
| 44 context_provider, worker_context_provider, false)); | 44 context_provider, worker_context_provider, false)); |
| 45 } | 45 } |
| 46 | 46 |
| 47 static std::unique_ptr<FakeOutputSurface> Create3d( | 47 static std::unique_ptr<FakeOutputSurface> Create3d( |
| 48 std::unique_ptr<TestGLES2Interface> gl) { | 48 std::unique_ptr<TestGLES2Interface> gl) { |
| 49 return base::WrapUnique(new FakeOutputSurface( | 49 return base::WrapUnique( |
| 50 TestContextProvider::Create(std::move(gl)), nullptr, false)); | 50 new FakeOutputSurface(TestContextProvider::Create(std::move(gl)), |
| 51 TestContextProvider::CreateWorker(), false)); |
| 51 } | 52 } |
| 52 | 53 |
| 53 static std::unique_ptr<FakeOutputSurface> Create3d( | 54 static std::unique_ptr<FakeOutputSurface> Create3d( |
| 54 std::unique_ptr<TestWebGraphicsContext3D> context) { | 55 std::unique_ptr<TestWebGraphicsContext3D> context) { |
| 55 return base::WrapUnique(new FakeOutputSurface( | 56 return base::WrapUnique(new FakeOutputSurface( |
| 56 TestContextProvider::Create(std::move(context)), nullptr, false)); | 57 TestContextProvider::Create(std::move(context)), nullptr, false)); |
| 57 } | 58 } |
| 58 | 59 |
| 59 static std::unique_ptr<FakeOutputSurface> CreateSoftware( | 60 static std::unique_ptr<FakeOutputSurface> CreateSoftware( |
| 60 std::unique_ptr<SoftwareOutputDevice> software_device) { | 61 std::unique_ptr<SoftwareOutputDevice> software_device) { |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 TransferableResourceArray resources_held_by_parent_; | 174 TransferableResourceArray resources_held_by_parent_; |
| 174 std::unique_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind_; | 175 std::unique_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind_; |
| 175 OverlayCandidateValidator* overlay_candidate_validator_ = nullptr; | 176 OverlayCandidateValidator* overlay_candidate_validator_ = nullptr; |
| 176 bool last_swap_rect_valid_ = false; | 177 bool last_swap_rect_valid_ = false; |
| 177 gfx::Rect last_swap_rect_; | 178 gfx::Rect last_swap_rect_; |
| 178 }; | 179 }; |
| 179 | 180 |
| 180 } // namespace cc | 181 } // namespace cc |
| 181 | 182 |
| 182 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ | 183 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ |
| OLD | NEW |