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

Side by Side Diff: ui/compositor/test/in_process_context_provider.h

Issue 1273163004: Revert of cc: Use worker context for one-copy tile initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 InProcessContextProvider( 42 InProcessContextProvider(
43 const gpu::gles2::ContextCreationAttribHelper& attribs, 43 const gpu::gles2::ContextCreationAttribHelper& attribs,
44 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 44 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
45 gpu::ImageFactory* image_factory, 45 gpu::ImageFactory* image_factory,
46 gfx::AcceleratedWidget window, 46 gfx::AcceleratedWidget window,
47 const std::string& debug_name); 47 const std::string& debug_name);
48 ~InProcessContextProvider() override; 48 ~InProcessContextProvider() override;
49 49
50 // cc::ContextProvider: 50 // cc::ContextProvider:
51 bool BindToCurrentThread() override; 51 bool BindToCurrentThread() override;
52 void DetachFromThread() override;
53 Capabilities ContextCapabilities() override; 52 Capabilities ContextCapabilities() override;
54 gpu::gles2::GLES2Interface* ContextGL() override; 53 gpu::gles2::GLES2Interface* ContextGL() override;
55 gpu::ContextSupport* ContextSupport() override; 54 gpu::ContextSupport* ContextSupport() override;
56 class GrContext* GrContext() override; 55 class GrContext* GrContext() override;
57 void InvalidateGrContext(uint32_t state) override; 56 void InvalidateGrContext(uint32_t state) override;
58 void SetupLock() override; 57 void SetupLock() override;
59 base::Lock* GetLock() override; 58 base::Lock* GetLock() override;
60 void VerifyContexts() override; 59 void VerifyContexts() override;
61 void DeleteCachedResources() override; 60 void DeleteCachedResources() override;
62 bool DestroyedOnMainThread() override; 61 bool DestroyedOnMainThread() override;
(...skipping 24 matching lines...) Expand all
87 bool destroyed_; 86 bool destroyed_;
88 87
89 base::Lock context_lock_; 88 base::Lock context_lock_;
90 89
91 DISALLOW_COPY_AND_ASSIGN(InProcessContextProvider); 90 DISALLOW_COPY_AND_ASSIGN(InProcessContextProvider);
92 }; 91 };
93 92
94 } // namespace ui 93 } // namespace ui
95 94
96 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ 95 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_
OLDNEW
« no previous file with comments | « ui/compositor/test/in_process_context_factory.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