Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(919)

Side by Side Diff: cc/test/layer_tree_pixel_test.cc

Issue 1273163004: Revert of cc: Use worker context for one-copy tile initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/test/layer_tree_pixel_test.h ('k') | cc/test/layer_tree_test.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/test/layer_tree_pixel_test.h ('k') | cc/test/layer_tree_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698