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

Unified Diff: content/browser/renderer_host/compositor_impl_android.h

Issue 2250473005: content: Fix Context creation logic in ContextProviderFactoryImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use mock factory Created 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/compositor_impl_android.h
diff --git a/content/browser/renderer_host/compositor_impl_android.h b/content/browser/renderer_host/compositor_impl_android.h
index 6638afd051f6b5bbf7f1a1d209d6571d6d0ee347..23b2e249a7c6f9a2d37ce18fc2bcb93c671a0a73 100644
--- a/content/browser/renderer_host/compositor_impl_android.h
+++ b/content/browser/renderer_host/compositor_impl_android.h
@@ -127,7 +127,8 @@ class CONTENT_EXPORT CompositorImpl
void CreateVulkanOutputSurface();
#endif
void CreateCompositorOutputSurface(
- const scoped_refptr<cc::ContextProvider>& context_provider);
+ const scoped_refptr<cc::ContextProvider>& context_provider,
+ ui::ContextProviderFactory::ContextCreationResult result);
void InitializeDisplay(
std::unique_ptr<cc::OutputSurface> display_output_surface,
scoped_refptr<cc::VulkanContextProvider> vulkan_context_provider,
@@ -168,6 +169,7 @@ class CONTENT_EXPORT CompositorImpl
// the GPU thread.
unsigned int pending_swapbuffers_;
+ size_t num_successive_gpu_process_initialization_failures_;
size_t num_successive_context_creation_failures_;
// Whether there is an OutputSurface request pending from the current

Powered by Google App Engine
This is Rietveld 408576698