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

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

Issue 10782005: Add a shallow command buffer flush that doesn't glFlush (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes a test failure 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
« no previous file with comments | « webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 WGC3Denum target, WGC3Denum pname, WGC3Dint* params); 471 WGC3Denum target, WGC3Denum pname, WGC3Dint* params);
472 virtual void getQueryObjectuivEXT( 472 virtual void getQueryObjectuivEXT(
473 WebGLId query, WGC3Denum pname, WGC3Duint* params); 473 WebGLId query, WGC3Denum pname, WGC3Duint* params);
474 474
475 virtual void copyTextureCHROMIUM(WGC3Denum target, WGC3Duint source_id, 475 virtual void copyTextureCHROMIUM(WGC3Denum target, WGC3Duint source_id,
476 WGC3Duint dest_id, WGC3Dint level, 476 WGC3Duint dest_id, WGC3Dint level,
477 WGC3Denum internal_format); 477 WGC3Denum internal_format);
478 virtual void bindUniformLocationCHROMIUM(WebGLId program, WGC3Dint location, 478 virtual void bindUniformLocationCHROMIUM(WebGLId program, WGC3Dint location,
479 const WGC3Dchar* uniform); 479 const WGC3Dchar* uniform);
480 480
481 // CHROMIUM_shallow_flush
482 // Only applies to contexts that use the command buffer.
483 virtual void shallowFlushCHROMIUM() { }
484
481 protected: 485 protected:
482 virtual GrGLInterface* onCreateGrGLInterface(); 486 virtual GrGLInterface* onCreateGrGLInterface();
483 487
484 private: 488 private:
485 bool Initialize(Attributes attributes); 489 bool Initialize(Attributes attributes);
486 490
487 // ANGLE related. 491 // ANGLE related.
488 struct ShaderSourceEntry; 492 struct ShaderSourceEntry;
489 493
490 typedef base::hash_map<WebGLId, ShaderSourceEntry*> ShaderSourceMap; 494 typedef base::hash_map<WebGLId, ShaderSourceEntry*> ShaderSourceMap;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 ShaderSourceMap shader_source_map_; 553 ShaderSourceMap shader_source_map_;
550 554
551 ShHandle fragment_compiler_; 555 ShHandle fragment_compiler_;
552 ShHandle vertex_compiler_; 556 ShHandle vertex_compiler_;
553 }; 557 };
554 558
555 } // namespace gpu 559 } // namespace gpu
556 } // namespace webkit 560 } // namespace webkit
557 561
558 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_ 562 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698