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

Side by Side Diff: ui/compositor/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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ 5 #ifndef UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_
6 #define UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ 6 #define UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 Capabilities ContextCapabilities() override; 44 Capabilities ContextCapabilities() override;
45 gpu::gles2::GLES2Interface* ContextGL() override; 45 gpu::gles2::GLES2Interface* ContextGL() override;
46 gpu::ContextSupport* ContextSupport() override; 46 gpu::ContextSupport* ContextSupport() override;
47 class GrContext* GrContext() override; 47 class GrContext* GrContext() override;
48 void InvalidateGrContext(uint32_t state) override; 48 void InvalidateGrContext(uint32_t state) override;
49 void SetupLock() override; 49 void SetupLock() override;
50 base::Lock* GetLock() override; 50 base::Lock* GetLock() override;
51 void DeleteCachedResources() override; 51 void DeleteCachedResources() override;
52 void SetLostContextCallback( 52 void SetLostContextCallback(
53 const LostContextCallback& lost_context_callback) override; 53 const LostContextCallback& lost_context_callback) override;
54 void SetMemoryPolicyChangedCallback(
55 const MemoryPolicyChangedCallback& memory_policy_changed_callback)
56 override;
54 57
55 private: 58 private:
56 InProcessContextProvider( 59 InProcessContextProvider(
57 const gpu::gles2::ContextCreationAttribHelper& attribs, 60 const gpu::gles2::ContextCreationAttribHelper& attribs,
58 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 61 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
59 gpu::ImageFactory* image_factory, 62 gpu::ImageFactory* image_factory,
60 gfx::AcceleratedWidget window, 63 gfx::AcceleratedWidget window,
61 const std::string& debug_name); 64 const std::string& debug_name);
62 ~InProcessContextProvider() override; 65 ~InProcessContextProvider() override;
63 66
(...skipping 15 matching lines...) Expand all
79 LostContextCallback lost_context_callback_; 82 LostContextCallback lost_context_callback_;
80 83
81 base::Lock context_lock_; 84 base::Lock context_lock_;
82 85
83 DISALLOW_COPY_AND_ASSIGN(InProcessContextProvider); 86 DISALLOW_COPY_AND_ASSIGN(InProcessContextProvider);
84 }; 87 };
85 88
86 } // namespace ui 89 } // namespace ui
87 90
88 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ 91 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | ui/compositor/test/in_process_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698