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 #include <stddef.h> | 5 #include <stddef.h> |
6 #include <stdint.h> | 6 #include <stdint.h> |
7 | 7 |
8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
9 #include "cc/layers/heads_up_display_layer.h" | 9 #include "cc/layers/heads_up_display_layer.h" |
10 #include "cc/layers/layer_impl.h" | 10 #include "cc/layers/layer_impl.h" |
(...skipping 901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
912 gfx::Rect(0, 0, 10, 10), | 912 gfx::Rect(0, 0, 10, 10), |
913 gfx::Transform()); | 913 gfx::Transform()); |
914 gpu::SyncToken mailbox_sync_token; | 914 gpu::SyncToken mailbox_sync_token; |
915 AddOneOfEveryQuadType(pass.get(), child_resource_provider_.get(), | 915 AddOneOfEveryQuadType(pass.get(), child_resource_provider_.get(), |
916 RenderPassId(2, 1), &mailbox_sync_token); | 916 RenderPassId(2, 1), &mailbox_sync_token); |
917 | 917 |
918 frame_data->render_pass_list.push_back(std::move(pass_for_quad)); | 918 frame_data->render_pass_list.push_back(std::move(pass_for_quad)); |
919 frame_data->render_pass_list.push_back(std::move(pass)); | 919 frame_data->render_pass_list.push_back(std::move(pass)); |
920 | 920 |
921 ResourceId resource = child_resource_provider_->CreateResource( | 921 ResourceId resource = child_resource_provider_->CreateResource( |
922 gfx::Size(4, 4), ResourceProvider::TEXTURE_HINT_IMMUTABLE, RGBA_8888); | 922 gfx::Size(4, 4), ResourceProvider::TEXTURE_HINT_IMMUTABLE, RGBA_8888, |
| 923 gfx::ColorSpace()); |
923 ResourceProvider::ScopedWriteLockGL lock(child_resource_provider_.get(), | 924 ResourceProvider::ScopedWriteLockGL lock(child_resource_provider_.get(), |
924 resource, false); | 925 resource, false); |
925 | 926 |
926 gpu::Mailbox mailbox; | 927 gpu::Mailbox mailbox; |
927 gl->GenMailboxCHROMIUM(mailbox.name); | 928 gl->GenMailboxCHROMIUM(mailbox.name); |
928 | 929 |
929 const GLuint64 fence_sync = gl->InsertFenceSyncCHROMIUM(); | 930 const GLuint64 fence_sync = gl->InsertFenceSyncCHROMIUM(); |
930 gl->ShallowFlushCHROMIUM(); | 931 gl->ShallowFlushCHROMIUM(); |
931 | 932 |
932 gpu::SyncToken sync_token; | 933 gpu::SyncToken sync_token; |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1578 void AfterTest() override {} | 1579 void AfterTest() override {} |
1579 | 1580 |
1580 bool deferred_; | 1581 bool deferred_; |
1581 }; | 1582 }; |
1582 | 1583 |
1583 SINGLE_AND_MULTI_THREAD_TEST_F( | 1584 SINGLE_AND_MULTI_THREAD_TEST_F( |
1584 LayerTreeHostContextTestLoseAfterSendingBeginMainFrame); | 1585 LayerTreeHostContextTestLoseAfterSendingBeginMainFrame); |
1585 | 1586 |
1586 } // namespace | 1587 } // namespace |
1587 } // namespace cc | 1588 } // namespace cc |
OLD | NEW |