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

Side by Side Diff: content/common/gpu/client/context_provider_command_buffer.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 CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_
6 #define CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
(...skipping 21 matching lines...) Expand all
32 32
33 // cc_blink::ContextProviderWebContext implementation. 33 // cc_blink::ContextProviderWebContext implementation.
34 WebGraphicsContext3DCommandBufferImpl* WebContext3D() override; 34 WebGraphicsContext3DCommandBufferImpl* WebContext3D() override;
35 35
36 // cc::ContextProvider implementation. 36 // cc::ContextProvider implementation.
37 bool BindToCurrentThread() override; 37 bool BindToCurrentThread() override;
38 void DetachFromThread() override; 38 void DetachFromThread() override;
39 gpu::gles2::GLES2Interface* ContextGL() override; 39 gpu::gles2::GLES2Interface* ContextGL() override;
40 gpu::ContextSupport* ContextSupport() override; 40 gpu::ContextSupport* ContextSupport() override;
41 class GrContext* GrContext() override; 41 class GrContext* GrContext() override;
42 void InvalidateGrContext(uint32_t state) override;
42 void SetupLock() override; 43 void SetupLock() override;
43 base::Lock* GetLock() override; 44 base::Lock* GetLock() override;
44 Capabilities ContextCapabilities() override; 45 Capabilities ContextCapabilities() override;
45 bool IsContextLost() override; 46 bool IsContextLost() override;
46 void VerifyContexts() override; 47 void VerifyContexts() override;
47 void DeleteCachedResources() override; 48 void DeleteCachedResources() override;
48 bool DestroyedOnMainThread() override; 49 bool DestroyedOnMainThread() override;
49 void SetLostContextCallback( 50 void SetLostContextCallback(
50 const LostContextCallback& lost_context_callback) override; 51 const LostContextCallback& lost_context_callback) override;
51 void SetMemoryPolicyChangedCallback( 52 void SetMemoryPolicyChangedCallback(
(...skipping 30 matching lines...) Expand all
82 83
83 base::Lock context_lock_; 84 base::Lock context_lock_;
84 85
85 class LostContextCallbackProxy; 86 class LostContextCallbackProxy;
86 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_; 87 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_;
87 }; 88 };
88 89
89 } // namespace content 90 } // namespace content
90 91
91 #endif // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ 92 #endif // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698