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