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

Side by Side Diff: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_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: 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 WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 5 #ifndef WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
7 7
8 #if defined(ENABLE_GPU) 8 #if defined(ENABLE_GPU)
9 9
10 #include <vector> 10 #include <vector>
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 virtual void getQueryObjectuivEXT( 474 virtual void getQueryObjectuivEXT(
475 WebGLId query, WGC3Denum pname, WGC3Duint* params); 475 WebGLId query, WGC3Denum pname, WGC3Duint* params);
476 476
477 virtual void copyTextureCHROMIUM(WGC3Denum target, WGC3Duint source_id, 477 virtual void copyTextureCHROMIUM(WGC3Denum target, WGC3Duint source_id,
478 WGC3Duint dest_id, WGC3Dint level, 478 WGC3Duint dest_id, WGC3Dint level,
479 WGC3Denum internal_format); 479 WGC3Denum internal_format);
480 480
481 virtual void bindUniformLocationCHROMIUM(WebGLId program, WGC3Dint location, 481 virtual void bindUniformLocationCHROMIUM(WebGLId program, WGC3Dint location,
482 const WGC3Dchar* uniform); 482 const WGC3Dchar* uniform);
483 483
484 virtual void shallowFlushCHROMIUM();
485
484 protected: 486 protected:
485 virtual GrGLInterface* onCreateGrGLInterface(); 487 virtual GrGLInterface* onCreateGrGLInterface();
486 488
487 private: 489 private:
488 // SwapBuffers callback. 490 // SwapBuffers callback.
489 void OnSwapBuffersComplete(); 491 void OnSwapBuffersComplete();
490 virtual void OnContextLost(); 492 virtual void OnContextLost();
491 493
492 // Used to try to find bugs in code that calls gl directly through the gl api 494 // Used to try to find bugs in code that calls gl directly through the gl api
493 // instead of going through WebGraphicsContext3D. 495 // instead of going through WebGraphicsContext3D.
(...skipping 22 matching lines...) Expand all
516 unsigned int width, 518 unsigned int width,
517 unsigned int height); 519 unsigned int height);
518 #endif 520 #endif
519 }; 521 };
520 522
521 } // namespace gpu 523 } // namespace gpu
522 } // namespace webkit 524 } // namespace webkit
523 525
524 #endif // defined(ENABLE_GPU) 526 #endif // defined(ENABLE_GPU)
525 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 527 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698