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

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

Issue 126973002: Decouple cc::FakeWebGraphicsContext3D from blink::WGC3D (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | « cc/output/delegating_renderer.cc ('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"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 const LayerTreeSettings* settings, 51 const LayerTreeSettings* settings,
52 OutputSurface* output_surface, 52 OutputSurface* output_surface,
53 ResourceProvider* resource_provider, 53 ResourceProvider* resource_provider,
54 TextureMailboxDeleter* texture_mailbox_deleter, 54 TextureMailboxDeleter* texture_mailbox_deleter,
55 int highp_threshold_min); 55 int highp_threshold_min);
56 56
57 virtual ~GLRenderer(); 57 virtual ~GLRenderer();
58 58
59 virtual const RendererCapabilities& Capabilities() const OVERRIDE; 59 virtual const RendererCapabilities& Capabilities() const OVERRIDE;
60 60
61 blink::WebGraphicsContext3D* Context();
62
63 // Waits for rendering to finish. 61 // Waits for rendering to finish.
64 virtual void Finish() OVERRIDE; 62 virtual void Finish() OVERRIDE;
65 63
66 virtual void DoNoOp() OVERRIDE; 64 virtual void DoNoOp() OVERRIDE;
67 virtual void SwapBuffers(const CompositorFrameMetadata& metadata) OVERRIDE; 65 virtual void SwapBuffers(const CompositorFrameMetadata& metadata) OVERRIDE;
68 66
69 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE; 67 virtual void GetFramebufferPixels(void* pixels, gfx::Rect rect) OVERRIDE;
70 68
71 virtual bool IsContextLost() OVERRIDE; 69 virtual bool IsContextLost() OVERRIDE;
72 70
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 390
393 VideoYUVProgram video_yuv_program_[NumTexCoordPrecisions]; 391 VideoYUVProgram video_yuv_program_[NumTexCoordPrecisions];
394 VideoYUVAProgram video_yuva_program_[NumTexCoordPrecisions]; 392 VideoYUVAProgram video_yuva_program_[NumTexCoordPrecisions];
395 VideoStreamTextureProgram 393 VideoStreamTextureProgram
396 video_stream_texture_program_[NumTexCoordPrecisions]; 394 video_stream_texture_program_[NumTexCoordPrecisions];
397 395
398 DebugBorderProgram debug_border_program_; 396 DebugBorderProgram debug_border_program_;
399 SolidColorProgram solid_color_program_; 397 SolidColorProgram solid_color_program_;
400 SolidColorProgramAA solid_color_program_aa_; 398 SolidColorProgramAA solid_color_program_aa_;
401 399
402 blink::WebGraphicsContext3D* context_;
403 gpu::gles2::GLES2Interface* gl_; 400 gpu::gles2::GLES2Interface* gl_;
404 gpu::ContextSupport* context_support_; 401 gpu::ContextSupport* context_support_;
405 402
406 skia::RefPtr<GrContext> gr_context_; 403 skia::RefPtr<GrContext> gr_context_;
407 skia::RefPtr<SkCanvas> sk_canvas_; 404 skia::RefPtr<SkCanvas> sk_canvas_;
408 405
409 TextureMailboxDeleter* texture_mailbox_deleter_; 406 TextureMailboxDeleter* texture_mailbox_deleter_;
410 407
411 gfx::Rect swap_buffer_rect_; 408 gfx::Rect swap_buffer_rect_;
412 gfx::Rect scissor_rect_; 409 gfx::Rect scissor_rect_;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 #if DEBUG_GL_CALLS && !defined(NDEBUG) 441 #if DEBUG_GL_CALLS && !defined(NDEBUG)
445 #define GLC(context, x) \ 442 #define GLC(context, x) \
446 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__)) 443 (x, GLRenderer::DebugGLCall(&* context, #x, __FILE__, __LINE__))
447 #else 444 #else
448 #define GLC(context, x) (x) 445 #define GLC(context, x) (x)
449 #endif 446 #endif
450 447
451 } // namespace cc 448 } // namespace cc
452 449
453 #endif // CC_OUTPUT_GL_RENDERER_H_ 450 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/delegating_renderer.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698