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

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

Issue 10695133: Improve GPU process URL crash reporting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: using net hash function instead of messing with hash_tables.h Created 8 years, 5 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 | Annotate | Revision Log
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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 const char* allowed_extensions, 125 const char* allowed_extensions,
126 const WebGraphicsContext3D::Attributes& attributes, 126 const WebGraphicsContext3D::Attributes& attributes,
127 bool bind_generates_resources, 127 bool bind_generates_resources,
128 const GURL& active_url, 128 const GURL& active_url,
129 content::CauseForGpuLaunch cause); 129 content::CauseForGpuLaunch cause);
130 130
131 // Create & initialize a WebGraphicsContext3DCommandBufferImpl. Return NULL 131 // Create & initialize a WebGraphicsContext3DCommandBufferImpl. Return NULL
132 // on any failure. 132 // on any failure.
133 static WebGraphicsContext3DCommandBufferImpl* CreateOffscreenContext( 133 static WebGraphicsContext3DCommandBufferImpl* CreateOffscreenContext(
134 GpuChannelHostFactory* factory, 134 GpuChannelHostFactory* factory,
135 const WebGraphicsContext3D::Attributes& attributes); 135 const WebGraphicsContext3D::Attributes& attributes,
136 const GURL& active_url);
136 137
137 //---------------------------------------------------------------------- 138 //----------------------------------------------------------------------
138 // WebGraphicsContext3D methods 139 // WebGraphicsContext3D methods
139 140
140 // Must be called after initialize() and before any of the following methods. 141 // Must be called after initialize() and before any of the following methods.
141 // Permanently binds to the first calling thread. Returns false if the 142 // Permanently binds to the first calling thread. Returns false if the
142 // graphics context fails to create. Do not call from more than one thread. 143 // graphics context fails to create. Do not call from more than one thread.
143 virtual bool makeContextCurrent(); 144 virtual bool makeContextCurrent();
144 145
145 virtual int width(); 146 virtual int width();
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 CommandBufferProxy* command_buffer_; 700 CommandBufferProxy* command_buffer_;
700 gpu::gles2::GLES2CmdHelper* gles2_helper_; 701 gpu::gles2::GLES2CmdHelper* gles2_helper_;
701 gpu::TransferBuffer* transfer_buffer_; 702 gpu::TransferBuffer* transfer_buffer_;
702 gpu::gles2::GLES2Implementation* gl_; 703 gpu::gles2::GLES2Implementation* gl_;
703 Error last_error_; 704 Error last_error_;
704 int frame_number_; 705 int frame_number_;
705 bool bind_generates_resources_; 706 bool bind_generates_resources_;
706 }; 707 };
707 708
708 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 709 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698