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

Side by Side Diff: cc/test/test_context_provider.h

Issue 1168943002: Remove ContextProvider::IsContextLost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: contextprovider: . 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/raster/tile_task_worker_pool_perftest.cc ('k') | cc/test/test_context_provider.cc » ('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 #ifndef CC_TEST_TEST_CONTEXT_PROVIDER_H_ 5 #ifndef CC_TEST_TEST_CONTEXT_PROVIDER_H_
6 #define CC_TEST_TEST_CONTEXT_PROVIDER_H_ 6 #define CC_TEST_TEST_CONTEXT_PROVIDER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 19 matching lines...) Expand all
30 30
31 bool BindToCurrentThread() override; 31 bool BindToCurrentThread() override;
32 void DetachFromThread() override; 32 void DetachFromThread() override;
33 Capabilities ContextCapabilities() override; 33 Capabilities ContextCapabilities() override;
34 gpu::gles2::GLES2Interface* ContextGL() override; 34 gpu::gles2::GLES2Interface* ContextGL() override;
35 gpu::ContextSupport* ContextSupport() override; 35 gpu::ContextSupport* ContextSupport() override;
36 class GrContext* GrContext() override; 36 class GrContext* GrContext() override;
37 void InvalidateGrContext(uint32_t state) override; 37 void InvalidateGrContext(uint32_t state) override;
38 void SetupLock() override; 38 void SetupLock() override;
39 base::Lock* GetLock() override; 39 base::Lock* GetLock() override;
40 bool IsContextLost() override;
41 void VerifyContexts() override; 40 void VerifyContexts() override;
42 void DeleteCachedResources() override; 41 void DeleteCachedResources() override;
43 bool DestroyedOnMainThread() override; 42 bool DestroyedOnMainThread() override;
44 void SetLostContextCallback(const LostContextCallback& cb) override; 43 void SetLostContextCallback(const LostContextCallback& cb) override;
45 void SetMemoryPolicyChangedCallback( 44 void SetMemoryPolicyChangedCallback(
46 const MemoryPolicyChangedCallback& cb) override; 45 const MemoryPolicyChangedCallback& cb) override;
47 46
48 TestWebGraphicsContext3D* TestContext3d(); 47 TestWebGraphicsContext3D* TestContext3d();
49 48
50 // This returns the TestWebGraphicsContext3D but is valid to call 49 // This returns the TestWebGraphicsContext3D but is valid to call
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 85
87 base::WeakPtrFactory<TestContextProvider> weak_ptr_factory_; 86 base::WeakPtrFactory<TestContextProvider> weak_ptr_factory_;
88 87
89 DISALLOW_COPY_AND_ASSIGN(TestContextProvider); 88 DISALLOW_COPY_AND_ASSIGN(TestContextProvider);
90 }; 89 };
91 90
92 } // namespace cc 91 } // namespace cc
93 92
94 #endif // CC_TEST_TEST_CONTEXT_PROVIDER_H_ 93 #endif // CC_TEST_TEST_CONTEXT_PROVIDER_H_
95 94
OLDNEW
« no previous file with comments | « cc/raster/tile_task_worker_pool_perftest.cc ('k') | cc/test/test_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698