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

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

Issue 7753035: Allow each WGC3D subclass to determine the correct GrGLInterface for its GrContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 #if WEBKIT_USING_SKIA
416 virtual GrGLInterface* grGLInterface();
417 #endif
418
415 private: 419 private:
416 // ANGLE related. 420 // ANGLE related.
417 struct ShaderSourceEntry; 421 struct ShaderSourceEntry;
418 422
419 typedef base::hash_map<WebGLId, ShaderSourceEntry*> ShaderSourceMap; 423 typedef base::hash_map<WebGLId, ShaderSourceEntry*> ShaderSourceMap;
420 424
421 #ifdef FLIP_FRAMEBUFFER_VERTICALLY 425 #ifdef FLIP_FRAMEBUFFER_VERTICALLY
422 void FlipVertically(unsigned char* framebuffer, 426 void FlipVertically(unsigned char* framebuffer,
423 unsigned int width, 427 unsigned int width,
424 unsigned int height); 428 unsigned int height);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 ShaderSourceMap shader_source_map_; 482 ShaderSourceMap shader_source_map_;
479 483
480 ShHandle fragment_compiler_; 484 ShHandle fragment_compiler_;
481 ShHandle vertex_compiler_; 485 ShHandle vertex_compiler_;
482 }; 486 };
483 487
484 } // namespace gpu 488 } // namespace gpu
485 } // namespace webkit 489 } // namespace webkit
486 490
487 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ 491 #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