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

Side by Side Diff: cc/output/gl_renderer.h

Issue 92593004: Use GLES2Interface for shader programs Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « cc/DEPS ('k') | cc/output/gl_renderer.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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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 CC_OUTPUT_GL_RENDERER_H_ 5 #ifndef CC_OUTPUT_GL_RENDERER_H_
6 #define CC_OUTPUT_GL_RENDERER_H_ 6 #define CC_OUTPUT_GL_RENDERER_H_
7 7
8 #include "base/cancelable_callback.h" 8 #include "base/cancelable_callback.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/base/scoped_ptr_vector.h" 10 #include "cc/base/scoped_ptr_vector.h"
11 #include "cc/output/direct_renderer.h" 11 #include "cc/output/direct_renderer.h"
12 #include "cc/output/gl_renderer_draw_cache.h" 12 #include "cc/output/gl_renderer_draw_cache.h"
13 #include "cc/output/program_binding.h" 13 #include "cc/output/program_binding.h"
14 #include "cc/output/renderer.h" 14 #include "cc/output/renderer.h"
15 #include "cc/quads/checkerboard_draw_quad.h" 15 #include "cc/quads/checkerboard_draw_quad.h"
16 #include "cc/quads/debug_border_draw_quad.h" 16 #include "cc/quads/debug_border_draw_quad.h"
17 #include "cc/quads/io_surface_draw_quad.h" 17 #include "cc/quads/io_surface_draw_quad.h"
18 #include "cc/quads/render_pass_draw_quad.h" 18 #include "cc/quads/render_pass_draw_quad.h"
19 #include "cc/quads/solid_color_draw_quad.h" 19 #include "cc/quads/solid_color_draw_quad.h"
20 #include "cc/quads/tile_draw_quad.h" 20 #include "cc/quads/tile_draw_quad.h"
21 #include "cc/quads/yuv_video_draw_quad.h" 21 #include "cc/quads/yuv_video_draw_quad.h"
22 #include "ui/gfx/quad_f.h" 22 #include "ui/gfx/quad_f.h"
23 23
24 class SkBitmap; 24 class SkBitmap;
25 25
26 namespace blink { class WebGraphicsContext3D; } 26 namespace blink { class WebGraphicsContext3D; }
27 27
28 namespace gpu {
29 namespace gles2 {
30 class GLES2Interface;
31 }
32 }
33
28 namespace cc { 34 namespace cc {
29 35
30 class GLRendererShaderTest; 36 class GLRendererShaderTest;
31 class OutputSurface; 37 class OutputSurface;
32 class PictureDrawQuad; 38 class PictureDrawQuad;
33 class ScopedResource; 39 class ScopedResource;
34 class StreamVideoDrawQuad; 40 class StreamVideoDrawQuad;
35 class TextureDrawQuad; 41 class TextureDrawQuad;
36 class TextureMailboxDeleter; 42 class TextureMailboxDeleter;
37 class GeometryBinding; 43 class GeometryBinding;
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 VideoYUVProgram video_yuv_program_[NumTexCoordPrecisions]; 402 VideoYUVProgram video_yuv_program_[NumTexCoordPrecisions];
397 VideoYUVAProgram video_yuva_program_[NumTexCoordPrecisions]; 403 VideoYUVAProgram video_yuva_program_[NumTexCoordPrecisions];
398 VideoStreamTextureProgram 404 VideoStreamTextureProgram
399 video_stream_texture_program_[NumTexCoordPrecisions]; 405 video_stream_texture_program_[NumTexCoordPrecisions];
400 406
401 DebugBorderProgram debug_border_program_; 407 DebugBorderProgram debug_border_program_;
402 SolidColorProgram solid_color_program_; 408 SolidColorProgram solid_color_program_;
403 SolidColorProgramAA solid_color_program_aa_; 409 SolidColorProgramAA solid_color_program_aa_;
404 410
405 blink::WebGraphicsContext3D* context_; 411 blink::WebGraphicsContext3D* context_;
412 gpu::gles2::GLES2Interface* gl_;
406 gpu::ContextSupport* context_support_; 413 gpu::ContextSupport* context_support_;
407 414
408 skia::RefPtr<GrContext> gr_context_; 415 skia::RefPtr<GrContext> gr_context_;
409 skia::RefPtr<SkCanvas> sk_canvas_; 416 skia::RefPtr<SkCanvas> sk_canvas_;
410 417
411 TextureMailboxDeleter* texture_mailbox_deleter_; 418 TextureMailboxDeleter* texture_mailbox_deleter_;
412 419
413 gfx::Rect swap_buffer_rect_; 420 gfx::Rect swap_buffer_rect_;
414 gfx::Rect scissor_rect_; 421 gfx::Rect scissor_rect_;
415 gfx::Rect viewport_; 422 gfx::Rect viewport_;
(...skipping 29 matching lines...) Expand all
445 #if DEBUG_GL_CALLS && !defined(NDEBUG) 452 #if DEBUG_GL_CALLS && !defined(NDEBUG)
446 #define GLC(context, x) \ 453 #define GLC(context, x) \
447 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) 454 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__))
448 #else 455 #else
449 #define GLC(context, x) (x) 456 #define GLC(context, x) (x)
450 #endif 457 #endif
451 458
452 } // namespace cc 459 } // namespace cc
453 460
454 #endif // CC_OUTPUT_GL_RENDERER_H_ 461 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/DEPS ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698