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

Side by Side Diff: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_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_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 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 423
424 virtual WebGLId createCompositorTexture(WGC3Dsizei width, WGC3Dsizei height); 424 virtual WebGLId createCompositorTexture(WGC3Dsizei width, WGC3Dsizei height);
425 virtual void deleteCompositorTexture(WebGLId parent_texture); 425 virtual void deleteCompositorTexture(WebGLId parent_texture);
426 virtual void copyTextureToCompositor(WebGLId texture, 426 virtual void copyTextureToCompositor(WebGLId texture,
427 WebGLId parent_texture); 427 WebGLId parent_texture);
428 428
429 virtual void setContextLostCallback( 429 virtual void setContextLostCallback(
430 WebGraphicsContext3D::WebGraphicsContextLostCallback* callback); 430 WebGraphicsContext3D::WebGraphicsContextLostCallback* callback);
431 virtual WGC3Denum getGraphicsResetStatusARB(); 431 virtual WGC3Denum getGraphicsResetStatusARB();
432 432
433 protected:
433 #if WEBKIT_USING_SKIA 434 #if WEBKIT_USING_SKIA
434 virtual GrGLInterface* grGLInterface(); 435 virtual GrGLInterface* onCreateGrGLInterface();
435 #endif 436 #endif
436 437
437 private: 438 private:
438 // SwapBuffers callback. 439 // SwapBuffers callback.
439 void OnSwapBuffersComplete(); 440 void OnSwapBuffersComplete();
440 virtual void OnContextLost(); 441 virtual void OnContextLost();
441 442
442 // Used to try to find bugs in code that calls gl directly through the gl api 443 // Used to try to find bugs in code that calls gl directly through the gl api
443 // instead of going through WebGraphicsContext3D. 444 // instead of going through WebGraphicsContext3D.
444 void ClearContext(); 445 void ClearContext();
(...skipping 29 matching lines...) Expand all
474 #endif 475 #endif
475 }; 476 };
476 477
477 } // namespace gpu 478 } // namespace gpu
478 } // namespace webkit 479 } // namespace webkit
479 480
480 #endif // defined(ENABLE_GPU) 481 #endif // defined(ENABLE_GPU)
481 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 482 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
482 483
483 484
OLDNEW
« no previous file with comments | « webkit/glue/gl_bindings_skia_cmd_buffer.cc ('k') | webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698