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

Side by Side Diff: content/renderer/gpu/webgraphicscontext3d_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, 4 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 | « no previous file | content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc » ('j') | 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) 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 CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
6 #define CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 6 #define CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_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 RendererGLContext* context() { return context_; } 423 RendererGLContext* context() { return context_; }
424 424
425 virtual void setContextLostCallback( 425 virtual void setContextLostCallback(
426 WebGraphicsContext3D::WebGraphicsContextLostCallback* callback); 426 WebGraphicsContext3D::WebGraphicsContextLostCallback* callback);
427 virtual WGC3Denum getGraphicsResetStatusARB(); 427 virtual WGC3Denum getGraphicsResetStatusARB();
428 428
429 virtual void setSwapBuffersCompleteCallbackCHROMIUM( 429 virtual void setSwapBuffersCompleteCallbackCHROMIUM(
430 WebGraphicsContext3D:: 430 WebGraphicsContext3D::
431 WebGraphicsSwapBuffersCompleteCallbackCHROMIUM* callback); 431 WebGraphicsSwapBuffersCompleteCallbackCHROMIUM* callback);
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(RendererGLContext::ContextLostReason reason); 440 virtual void OnContextLost(RendererGLContext::ContextLostReason reason);
437 441
438 // The context we use for OpenGL rendering. 442 // The context we use for OpenGL rendering.
439 RendererGLContext* context_; 443 RendererGLContext* context_;
440 // The GLES2Implementation we use for OpenGL rendering. 444 // The GLES2Implementation we use for OpenGL rendering.
441 gpu::gles2::GLES2Implementation* gl_; 445 gpu::gles2::GLES2Implementation* gl_;
442 446
(...skipping 24 matching lines...) Expand all
467 #ifdef FLIP_FRAMEBUFFER_VERTICALLY 471 #ifdef FLIP_FRAMEBUFFER_VERTICALLY
468 scoped_array<uint8> scanline_; 472 scoped_array<uint8> scanline_;
469 void FlipVertically(uint8* framebuffer, 473 void FlipVertically(uint8* framebuffer,
470 unsigned int width, 474 unsigned int width,
471 unsigned int height); 475 unsigned int height);
472 #endif 476 #endif
473 }; 477 };
474 478
475 #endif // defined(ENABLE_GPU) 479 #endif // defined(ENABLE_GPU)
476 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 480 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698