OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "cc/test/layer_tree_pixel_test.h" | 5 #include "cc/test/layer_tree_pixel_test.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
9 #include "cc/base/switches.h" | 9 #include "cc/base/switches.h" |
10 #include "cc/layers/solid_color_layer.h" | 10 #include "cc/layers/solid_color_layer.h" |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
374 uint32 sync_point = gl->InsertSyncPointCHROMIUM(); | 374 uint32 sync_point = gl->InsertSyncPointCHROMIUM(); |
375 | 375 |
376 *texture_mailbox = TextureMailbox(mailbox, GL_TEXTURE_2D, sync_point); | 376 *texture_mailbox = TextureMailbox(mailbox, GL_TEXTURE_2D, sync_point); |
377 *release_callback = SingleReleaseCallback::Create( | 377 *release_callback = SingleReleaseCallback::Create( |
378 base::Bind(&LayerTreePixelTest::ReleaseTextureMailbox, | 378 base::Bind(&LayerTreePixelTest::ReleaseTextureMailbox, |
379 base::Unretained(this), | 379 base::Unretained(this), |
380 base::Passed(&context), | 380 base::Passed(&context), |
381 texture_id)); | 381 texture_id)); |
382 } | 382 } |
383 | 383 |
384 void LayerTreePixelTest::Finish() { | |
385 scoped_ptr<gpu::GLInProcessContext> context = CreateTestInProcessContext(); | |
386 GLES2Interface* gl = context->GetImplementation(); | |
387 gl->Finish(); | |
388 } | |
389 | |
390 } // namespace cc | 384 } // namespace cc |
OLD | NEW |