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

Side by Side Diff: cc/trees/layer_tree_host_unittest_context.cc

Issue 1141703002: Chromium changes for static linking ffmpeg (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Roll DEPS to fix cros, rebase. Created 5 years, 6 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/trees/layer_tree_host_impl_unittest.cc ('k') | chrome/chrome.isolate » ('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 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 "cc/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "cc/layers/content_layer.h" 8 #include "cc/layers/content_layer.h"
9 #include "cc/layers/delegated_frame_provider.h" 9 #include "cc/layers/delegated_frame_provider.h"
10 #include "cc/layers/delegated_frame_resource_collection.h" 10 #include "cc/layers/delegated_frame_resource_collection.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 times_to_fail_create_(0), 60 times_to_fail_create_(0),
61 times_to_lose_during_commit_(0), 61 times_to_lose_during_commit_(0),
62 times_to_lose_during_draw_(0), 62 times_to_lose_during_draw_(0),
63 times_to_fail_recreate_(0), 63 times_to_fail_recreate_(0),
64 times_to_expect_create_failed_(0), 64 times_to_expect_create_failed_(0),
65 times_create_failed_(0), 65 times_create_failed_(0),
66 committed_at_least_once_(false), 66 committed_at_least_once_(false),
67 context_should_support_io_surface_(false), 67 context_should_support_io_surface_(false),
68 fallback_context_works_(false), 68 fallback_context_works_(false),
69 async_output_surface_creation_(false) { 69 async_output_surface_creation_(false) {
70 media::InitializeMediaLibraryForTesting(); 70 media::InitializeMediaLibrary();
71 } 71 }
72 72
73 void LoseContext() { 73 void LoseContext() {
74 // For sanity-checking tests, they should only call this when the 74 // For sanity-checking tests, they should only call this when the
75 // context is not lost. 75 // context is not lost.
76 CHECK(context3d_); 76 CHECK(context3d_);
77 context3d_->loseContextCHROMIUM(GL_GUILTY_CONTEXT_RESET_ARB, 77 context3d_->loseContextCHROMIUM(GL_GUILTY_CONTEXT_RESET_ARB,
78 GL_INNOCENT_CONTEXT_RESET_ARB); 78 GL_INNOCENT_CONTEXT_RESET_ARB);
79 context3d_ = NULL; 79 context3d_ = NULL;
80 } 80 }
(...skipping 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after
1805 void AfterTest() override {} 1805 void AfterTest() override {}
1806 1806
1807 bool deferred_; 1807 bool deferred_;
1808 }; 1808 };
1809 1809
1810 SINGLE_AND_MULTI_THREAD_TEST_F( 1810 SINGLE_AND_MULTI_THREAD_TEST_F(
1811 LayerTreeHostContextTestLoseAfterSendingBeginMainFrame); 1811 LayerTreeHostContextTestLoseAfterSendingBeginMainFrame);
1812 1812
1813 } // namespace 1813 } // namespace
1814 } // namespace cc 1814 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | chrome/chrome.isolate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698