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

Side by Side Diff: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h

Issue 609973002: Move InitializeOnCurrentThread down from WebGraphicsContext3DImpl to WebGraphicsContext3DCommandBuf… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android Created 6 years, 2 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_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
6 #define CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 const WebGraphicsContext3D::Attributes& attributes, 135 const WebGraphicsContext3D::Attributes& attributes,
136 bool lose_context_when_out_of_memory, 136 bool lose_context_when_out_of_memory,
137 const GURL& active_url, 137 const GURL& active_url,
138 const SharedMemoryLimits& limits, 138 const SharedMemoryLimits& limits,
139 WebGraphicsContext3DCommandBufferImpl* share_context); 139 WebGraphicsContext3DCommandBufferImpl* share_context);
140 140
141 size_t GetMappedMemoryLimit() { 141 size_t GetMappedMemoryLimit() {
142 return mem_limits_.mapped_memory_reclaim_limit; 142 return mem_limits_.mapped_memory_reclaim_limit;
143 } 143 }
144 144
145 // WebGraphicsContext3DImpl methods 145 CONTENT_EXPORT bool InitializeOnCurrentThread();
jamesr 2014/09/29 18:00:57 what's the export for? all the callers I can see a
146 virtual bool InitializeOnCurrentThread() OVERRIDE;
147 146
148 //---------------------------------------------------------------------- 147 //----------------------------------------------------------------------
149 // WebGraphicsContext3D methods 148 // WebGraphicsContext3D methods
150 virtual bool isContextLost(); 149 virtual bool isContextLost();
151 150
152 virtual WGC3Denum getGraphicsResetStatusARB(); 151 virtual WGC3Denum getGraphicsResetStatusARB();
153 152
154 private: 153 private:
155 // These are the same error codes as used by EGL. 154 // These are the same error codes as used by EGL.
156 enum Error { 155 enum Error {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 209
211 // Member variables should appear before the WeakPtrFactory, to ensure 210 // Member variables should appear before the WeakPtrFactory, to ensure
212 // that any WeakPtrs to Controller are invalidated before its members 211 // that any WeakPtrs to Controller are invalidated before its members
213 // variable's destructors are executed, rendering them invalid. 212 // variable's destructors are executed, rendering them invalid.
214 base::WeakPtrFactory<WebGraphicsContext3DCommandBufferImpl> weak_ptr_factory_; 213 base::WeakPtrFactory<WebGraphicsContext3DCommandBufferImpl> weak_ptr_factory_;
215 }; 214 };
216 215
217 } // namespace content 216 } // namespace content
218 217
219 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 218 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698