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

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

Issue 1131723002: Add ContextProvider::InvalidateGrContext to reset GL state in GrContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix int/uint typo Created 5 years, 7 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 30 matching lines...) Expand all
41 gfx::AcceleratedWidget window, 41 gfx::AcceleratedWidget window,
42 const std::string& debug_name); 42 const std::string& debug_name);
43 ~InProcessContextProvider() override; 43 ~InProcessContextProvider() override;
44 44
45 // cc::ContextProvider: 45 // cc::ContextProvider:
46 bool BindToCurrentThread() override; 46 bool BindToCurrentThread() override;
47 Capabilities ContextCapabilities() override; 47 Capabilities ContextCapabilities() override;
48 gpu::gles2::GLES2Interface* ContextGL() override; 48 gpu::gles2::GLES2Interface* ContextGL() override;
49 gpu::ContextSupport* ContextSupport() override; 49 gpu::ContextSupport* ContextSupport() override;
50 class GrContext* GrContext() override; 50 class GrContext* GrContext() override;
51 void InvalidateGrContext(uint32_t state) override;
51 void SetupLock() override; 52 void SetupLock() override;
52 base::Lock* GetLock() override; 53 base::Lock* GetLock() override;
53 bool IsContextLost() override; 54 bool IsContextLost() override;
54 void VerifyContexts() override; 55 void VerifyContexts() override;
55 void DeleteCachedResources() override; 56 void DeleteCachedResources() override;
56 bool DestroyedOnMainThread() override; 57 bool DestroyedOnMainThread() override;
57 void SetLostContextCallback( 58 void SetLostContextCallback(
58 const LostContextCallback& lost_context_callback) override; 59 const LostContextCallback& lost_context_callback) override;
59 void SetMemoryPolicyChangedCallback( 60 void SetMemoryPolicyChangedCallback(
60 const MemoryPolicyChangedCallback& memory_policy_changed_callback) 61 const MemoryPolicyChangedCallback& memory_policy_changed_callback)
(...skipping 19 matching lines...) Expand all
80 bool destroyed_; 81 bool destroyed_;
81 82
82 base::Lock context_lock_; 83 base::Lock context_lock_;
83 84
84 DISALLOW_COPY_AND_ASSIGN(InProcessContextProvider); 85 DISALLOW_COPY_AND_ASSIGN(InProcessContextProvider);
85 }; 86 };
86 87
87 } // namespace ui 88 } // namespace ui
88 89
89 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_ 90 #endif // UI_COMPOSITOR_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698