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

Side by Side Diff: webkit/common/gpu/context_provider_in_process.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: 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 WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_IN_PROCESS_H_ 5 #ifndef WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_IN_PROCESS_H_
6 #define WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_IN_PROCESS_H_ 6 #define WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_IN_PROCESS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // cc_blink::ContextProviderWebContext: 46 // cc_blink::ContextProviderWebContext:
47 blink::WebGraphicsContext3D* WebContext3D() override; 47 blink::WebGraphicsContext3D* WebContext3D() override;
48 48
49 // cc::ContextProvider: 49 // cc::ContextProvider:
50 bool BindToCurrentThread() override; 50 bool BindToCurrentThread() override;
51 void DetachFromThread() override; 51 void DetachFromThread() override;
52 Capabilities ContextCapabilities() override; 52 Capabilities ContextCapabilities() override;
53 ::gpu::gles2::GLES2Interface* ContextGL() override; 53 ::gpu::gles2::GLES2Interface* ContextGL() override;
54 ::gpu::ContextSupport* ContextSupport() override; 54 ::gpu::ContextSupport* ContextSupport() override;
55 class GrContext* GrContext() override; 55 class GrContext* GrContext() override;
56 void DoInvalidateGrContext(uint32_t state) override;
56 void SetupLock() override; 57 void SetupLock() override;
57 base::Lock* GetLock() override; 58 base::Lock* GetLock() override;
58 bool IsContextLost() override; 59 bool IsContextLost() override;
59 void VerifyContexts() override; 60 void VerifyContexts() override;
60 void DeleteCachedResources() override; 61 void DeleteCachedResources() override;
61 bool DestroyedOnMainThread() override; 62 bool DestroyedOnMainThread() override;
62 void SetLostContextCallback( 63 void SetLostContextCallback(
63 const LostContextCallback& lost_context_callback) override; 64 const LostContextCallback& lost_context_callback) override;
64 void SetMemoryPolicyChangedCallback( 65 void SetMemoryPolicyChangedCallback(
65 const MemoryPolicyChangedCallback& memory_policy_changed_callback) 66 const MemoryPolicyChangedCallback& memory_policy_changed_callback)
(...skipping 21 matching lines...) Expand all
87 88
88 cc::ContextProvider::Capabilities capabilities_; 89 cc::ContextProvider::Capabilities capabilities_;
89 90
90 DISALLOW_COPY_AND_ASSIGN(ContextProviderInProcess); 91 DISALLOW_COPY_AND_ASSIGN(ContextProviderInProcess);
91 }; 92 };
92 93
93 } // namespace gpu 94 } // namespace gpu
94 } // namespace webkit 95 } // namespace webkit
95 96
96 #endif // WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_IN_PROCESS_H_ 97 #endif // WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_IN_PROCESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698