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

Side by Side Diff: content/renderer/pepper/ppb_graphics_3d_impl.h

Issue 1916303003: Report lost context from GLES2Implementation based on share group state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lost-share-group: disconnect-channel Created 4 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 explicit PPB_Graphics3D_Impl(PP_Instance instance); 80 explicit PPB_Graphics3D_Impl(PP_Instance instance);
81 81
82 bool InitRaw(PPB_Graphics3D_API* share_context, 82 bool InitRaw(PPB_Graphics3D_API* share_context,
83 const int32_t* attrib_list, 83 const int32_t* attrib_list,
84 gpu::Capabilities* capabilities, 84 gpu::Capabilities* capabilities,
85 base::SharedMemoryHandle* shared_state_handle, 85 base::SharedMemoryHandle* shared_state_handle,
86 gpu::CommandBufferId* command_buffer_id); 86 gpu::CommandBufferId* command_buffer_id);
87 87
88 // GpuControlClient implementation. 88 // GpuControlClient implementation.
89 void OnGpuControlLostContext() final; 89 void OnGpuControlLostContext() final;
90 void OnGpuControlLostContextMaybeReentrant() final;
90 void OnGpuControlErrorMessage(const char* msg, int id) final; 91 void OnGpuControlErrorMessage(const char* msg, int id) final;
91 92
92 // Other notifications from the GPU process. 93 // Other notifications from the GPU process.
93 void OnSwapBuffers(); 94 void OnSwapBuffers();
94 // Notifications sent to plugin. 95 // Notifications sent to plugin.
95 void SendContextLost(); 96 void SendContextLost();
96 97
97 // True if context is bound to instance. 98 // True if context is bound to instance.
98 bool bound_to_instance_; 99 bool bound_to_instance_;
99 // True when waiting for compositor to commit our backing texture. 100 // True when waiting for compositor to commit our backing texture.
(...skipping 10 matching lines...) Expand all
110 std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_; 111 std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_;
111 112
112 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_; 113 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_;
113 114
114 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); 115 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl);
115 }; 116 };
116 117
117 } // namespace content 118 } // namespace content
118 119
119 #endif // CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ 120 #endif // CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_video_encoder_host.cc ('k') | content/renderer/pepper/ppb_graphics_3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698