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

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

Issue 470973002: gpu: Remove WebGraphicsContext3D::makeContextCurrent() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix in unittests Created 6 years, 3 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 | « no previous file | content/browser/android/in_process/synchronous_compositor_factory_impl.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 #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 27 matching lines...) Expand all
38 virtual bool DestroyedOnMainThread() OVERRIDE; 38 virtual bool DestroyedOnMainThread() OVERRIDE;
39 virtual void SetLostContextCallback(const LostContextCallback& cb) OVERRIDE; 39 virtual void SetLostContextCallback(const LostContextCallback& cb) OVERRIDE;
40 virtual void SetMemoryPolicyChangedCallback( 40 virtual void SetMemoryPolicyChangedCallback(
41 const MemoryPolicyChangedCallback& cb) OVERRIDE; 41 const MemoryPolicyChangedCallback& cb) OVERRIDE;
42 42
43 TestWebGraphicsContext3D* TestContext3d(); 43 TestWebGraphicsContext3D* TestContext3d();
44 44
45 // This returns the TestWebGraphicsContext3D but is valid to call 45 // This returns the TestWebGraphicsContext3D but is valid to call
46 // before the context is bound to a thread. This is needed to set up 46 // before the context is bound to a thread. This is needed to set up
47 // state on the test context before binding. Don't call 47 // state on the test context before binding. Don't call
48 // makeContextCurrent on the context returned from this method. 48 // InitializeOnCurrentThread on the context returned from this method.
49 TestWebGraphicsContext3D* UnboundTestContext3d(); 49 TestWebGraphicsContext3D* UnboundTestContext3d();
50 50
51 TestContextSupport* support() { return &support_; } 51 TestContextSupport* support() { return &support_; }
52 52
53 void SetMemoryAllocation(const ManagedMemoryPolicy& policy); 53 void SetMemoryAllocation(const ManagedMemoryPolicy& policy);
54 54
55 void SetMaxTransferBufferUsageBytes(size_t max_transfer_buffer_usage_bytes); 55 void SetMaxTransferBufferUsageBytes(size_t max_transfer_buffer_usage_bytes);
56 56
57 protected: 57 protected:
58 explicit TestContextProvider(scoped_ptr<TestWebGraphicsContext3D> context); 58 explicit TestContextProvider(scoped_ptr<TestWebGraphicsContext3D> context);
(...skipping 19 matching lines...) Expand all
78 78
79 base::WeakPtrFactory<TestContextProvider> weak_ptr_factory_; 79 base::WeakPtrFactory<TestContextProvider> weak_ptr_factory_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(TestContextProvider); 81 DISALLOW_COPY_AND_ASSIGN(TestContextProvider);
82 }; 82 };
83 83
84 } // namespace cc 84 } // namespace cc
85 85
86 #endif // CC_TEST_TEST_CONTEXT_PROVIDER_H_ 86 #endif // CC_TEST_TEST_CONTEXT_PROVIDER_H_
87 87
OLDNEW
« no previous file with comments | « no previous file | content/browser/android/in_process/synchronous_compositor_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698