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

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

Issue 1230203007: Re-land: cc: Use worker context for one-copy tile initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits and use best_resource_format for now Created 5 years, 5 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const gpu::gles2::ContextCreationAttribHelper& attribs, 45 const gpu::gles2::ContextCreationAttribHelper& attribs,
46 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 46 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
47 gpu::ImageFactory* image_factory, 47 gpu::ImageFactory* image_factory,
48 bool lose_context_when_out_of_memory, 48 bool lose_context_when_out_of_memory,
49 gfx::AcceleratedWidget window, 49 gfx::AcceleratedWidget window,
50 const std::string& debug_name); 50 const std::string& debug_name);
51 ~InProcessContextProvider() override; 51 ~InProcessContextProvider() override;
52 52
53 // cc::ContextProvider: 53 // cc::ContextProvider:
54 bool BindToCurrentThread() override; 54 bool BindToCurrentThread() override;
55 void DetachFromThread() override;
55 Capabilities ContextCapabilities() override; 56 Capabilities ContextCapabilities() override;
56 gpu::gles2::GLES2Interface* ContextGL() override; 57 gpu::gles2::GLES2Interface* ContextGL() override;
57 gpu::ContextSupport* ContextSupport() override; 58 gpu::ContextSupport* ContextSupport() override;
58 class GrContext* GrContext() override; 59 class GrContext* GrContext() override;
59 void InvalidateGrContext(uint32_t state) override; 60 void InvalidateGrContext(uint32_t state) override;
60 void SetupLock() override; 61 void SetupLock() override;
61 base::Lock* GetLock() override; 62 base::Lock* GetLock() override;
62 void VerifyContexts() override; 63 void VerifyContexts() override;
63 void DeleteCachedResources() override; 64 void DeleteCachedResources() override;
64 bool DestroyedOnMainThread() override; 65 bool DestroyedOnMainThread() override;
(...skipping 25 matching lines...) Expand all
90 bool destroyed_; 91 bool destroyed_;
91 92
92 base::Lock context_lock_; 93 base::Lock context_lock_;
93 94
94 DISALLOW_COPY_AND_ASSIGN(InProcessContextProvider); 95 DISALLOW_COPY_AND_ASSIGN(InProcessContextProvider);
95 }; 96 };
96 97
97 } // namespace ui 98 } // namespace ui
98 99
99 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ 100 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698