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

Side by Side Diff: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_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_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 #if WEBKIT_USING_SKIA
434 virtual GrGLInterface* grGLInterface();
435 #endif
436
433 private: 437 private:
434 // SwapBuffers callback. 438 // SwapBuffers callback.
435 void OnSwapBuffersComplete(); 439 void OnSwapBuffersComplete();
436 virtual void OnContextLost(); 440 virtual void OnContextLost();
437 441
438 // Used to try to find bugs in code that calls gl directly through the gl api 442 // Used to try to find bugs in code that calls gl directly through the gl api
439 // instead of going through WebGraphicsContext3D. 443 // instead of going through WebGraphicsContext3D.
440 void ClearContext(); 444 void ClearContext();
441 445
442 // The context we use for OpenGL rendering. 446 // The context we use for OpenGL rendering.
(...skipping 27 matching lines...) Expand all
470 #endif 474 #endif
471 }; 475 };
472 476
473 } // namespace gpu 477 } // namespace gpu
474 } // namespace webkit 478 } // namespace webkit
475 479
476 #endif // defined(ENABLE_GPU) 480 #endif // defined(ENABLE_GPU)
477 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 481 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
478 482
479 483
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