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

Side by Side Diff: webkit/gpu/webgraphicscontext3d_in_process_impl.h

Issue 7756004: Create a new GrGLInterface for each GrContext so callback can be used to set GL-context (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: switch machines Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ 5 #ifndef WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_
6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ 6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 10
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 virtual void deleteTexture(WebGLId); 405 virtual void deleteTexture(WebGLId);
406 406
407 virtual void setContextLostCallback( 407 virtual void setContextLostCallback(
408 WebGraphicsContext3D::WebGraphicsContextLostCallback* callback) {} 408 WebGraphicsContext3D::WebGraphicsContextLostCallback* callback) {}
409 virtual WGC3Denum getGraphicsResetStatusARB(); 409 virtual WGC3Denum getGraphicsResetStatusARB();
410 410
411 virtual void setSwapBuffersCompleteCallbackCHROMIUM( 411 virtual void setSwapBuffersCompleteCallbackCHROMIUM(
412 WebGraphicsContext3D:: 412 WebGraphicsContext3D::
413 WebGraphicsSwapBuffersCompleteCallbackCHROMIUM* callback) {} 413 WebGraphicsSwapBuffersCompleteCallbackCHROMIUM* callback) {}
414 414
415 protected:
415 #if WEBKIT_USING_SKIA 416 #if WEBKIT_USING_SKIA
416 virtual GrGLInterface* grGLInterface(); 417 virtual GrGLInterface* onCreateGrGLInterface();
417 #endif 418 #endif
418 419
419 private: 420 private:
420 // ANGLE related. 421 // ANGLE related.
421 struct ShaderSourceEntry; 422 struct ShaderSourceEntry;
422 423
423 typedef base::hash_map<WebGLId, ShaderSourceEntry*> ShaderSourceMap; 424 typedef base::hash_map<WebGLId, ShaderSourceEntry*> ShaderSourceMap;
424 425
425 #ifdef FLIP_FRAMEBUFFER_VERTICALLY 426 #ifdef FLIP_FRAMEBUFFER_VERTICALLY
426 void FlipVertically(unsigned char* framebuffer, 427 void FlipVertically(unsigned char* framebuffer,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 ShaderSourceMap shader_source_map_; 483 ShaderSourceMap shader_source_map_;
483 484
484 ShHandle fragment_compiler_; 485 ShHandle fragment_compiler_;
485 ShHandle vertex_compiler_; 486 ShHandle vertex_compiler_;
486 }; 487 };
487 488
488 } // namespace gpu 489 } // namespace gpu
489 } // namespace webkit 490 } // namespace webkit
490 491
491 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ 492 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc ('k') | webkit/gpu/webgraphicscontext3d_in_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698