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

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

Issue 1412923004: Revert of Move gpu memory calculations to Compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 1 month 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/test_context_provider.cc ('k') | cc/test/test_in_process_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_IN_PROCESS_CONTEXT_PROVIDER_H_ 5 #ifndef CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_
6 #define CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ 6 #define CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_
7 7
8 #include "base/synchronization/lock.h" 8 #include "base/synchronization/lock.h"
9 #include "cc/output/context_provider.h" 9 #include "cc/output/context_provider.h"
10 #include "cc/test/test_gpu_memory_buffer_manager.h" 10 #include "cc/test/test_gpu_memory_buffer_manager.h"
(...skipping 21 matching lines...) Expand all
32 gpu::gles2::GLES2Interface* ContextGL() override; 32 gpu::gles2::GLES2Interface* ContextGL() override;
33 gpu::ContextSupport* ContextSupport() override; 33 gpu::ContextSupport* ContextSupport() override;
34 class GrContext* GrContext() override; 34 class GrContext* GrContext() override;
35 void InvalidateGrContext(uint32_t state) override; 35 void InvalidateGrContext(uint32_t state) override;
36 void SetupLock() override; 36 void SetupLock() override;
37 base::Lock* GetLock() override; 37 base::Lock* GetLock() override;
38 Capabilities ContextCapabilities() override; 38 Capabilities ContextCapabilities() override;
39 void DeleteCachedResources() override; 39 void DeleteCachedResources() override;
40 void SetLostContextCallback( 40 void SetLostContextCallback(
41 const LostContextCallback& lost_context_callback) override; 41 const LostContextCallback& lost_context_callback) override;
42 void SetMemoryPolicyChangedCallback(
43 const MemoryPolicyChangedCallback& memory_policy_changed_callback)
44 override;
42 45
43 protected: 46 protected:
44 friend class base::RefCountedThreadSafe<TestInProcessContextProvider>; 47 friend class base::RefCountedThreadSafe<TestInProcessContextProvider>;
45 ~TestInProcessContextProvider() override; 48 ~TestInProcessContextProvider() override;
46 49
47 private: 50 private:
48 TestGpuMemoryBufferManager gpu_memory_buffer_manager_; 51 TestGpuMemoryBufferManager gpu_memory_buffer_manager_;
49 TestImageFactory image_factory_; 52 TestImageFactory image_factory_;
50 scoped_ptr<gpu::GLInProcessContext> context_; 53 scoped_ptr<gpu::GLInProcessContext> context_;
51 skia::RefPtr<class GrContext> gr_context_; 54 skia::RefPtr<class GrContext> gr_context_;
52 base::Lock context_lock_; 55 base::Lock context_lock_;
53 }; 56 };
54 57
55 } // namespace cc 58 } // namespace cc
56 59
57 #endif // CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ 60 #endif // CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_
OLDNEW
« no previous file with comments | « cc/test/test_context_provider.cc ('k') | cc/test/test_in_process_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698