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

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

Issue 2674493003: Add compositor support for half-float RGBA buffers and textures (Closed)
Patch Set: Don't enable on non-ES3 yet Created 3 years, 10 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
« no previous file with comments | « cc/output/direct_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 <deque> 8 #include <deque>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 const gfx::Rect& device_rect); 78 const gfx::Rect& device_rect);
79 void ReleaseRenderPassTextures(); 79 void ReleaseRenderPassTextures();
80 enum BoundGeometry { NO_BINDING, SHARED_BINDING, CLIPPED_BINDING }; 80 enum BoundGeometry { NO_BINDING, SHARED_BINDING, CLIPPED_BINDING };
81 void PrepareGeometry(BoundGeometry geometry_to_bind); 81 void PrepareGeometry(BoundGeometry geometry_to_bind);
82 void SetStencilEnabled(bool enabled); 82 void SetStencilEnabled(bool enabled);
83 bool stencil_enabled() const { return stencil_shadow_; } 83 bool stencil_enabled() const { return stencil_shadow_; }
84 void SetBlendEnabled(bool enabled); 84 void SetBlendEnabled(bool enabled);
85 bool blend_enabled() const { return blend_shadow_; } 85 bool blend_enabled() const { return blend_shadow_; }
86 86
87 bool CanPartialSwap() override; 87 bool CanPartialSwap() override;
88 ResourceFormat BackbufferFormat() const override;
88 void BindFramebufferToOutputSurface(DrawingFrame* frame) override; 89 void BindFramebufferToOutputSurface(DrawingFrame* frame) override;
89 bool BindFramebufferToTexture(DrawingFrame* frame, 90 bool BindFramebufferToTexture(DrawingFrame* frame,
90 const ScopedResource* resource) override; 91 const ScopedResource* resource) override;
91 void SetScissorTestRect(const gfx::Rect& scissor_rect) override; 92 void SetScissorTestRect(const gfx::Rect& scissor_rect) override;
92 void PrepareSurfaceForPass(DrawingFrame* frame, 93 void PrepareSurfaceForPass(DrawingFrame* frame,
93 SurfaceInitializationMode initialization_mode, 94 SurfaceInitializationMode initialization_mode,
94 const gfx::Rect& render_pass_scissor) override; 95 const gfx::Rect& render_pass_scissor) override;
95 void DoDrawQuad(DrawingFrame* frame, 96 void DoDrawQuad(DrawingFrame* frame,
96 const class DrawQuad*, 97 const class DrawQuad*,
97 const gfx::QuadF* draw_region) override; 98 const gfx::QuadF* draw_region) override;
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 gfx::Size offscreen_stencil_renderbuffer_size_; 371 gfx::Size offscreen_stencil_renderbuffer_size_;
371 372
372 base::WeakPtrFactory<GLRenderer> weak_ptr_factory_; 373 base::WeakPtrFactory<GLRenderer> weak_ptr_factory_;
373 374
374 DISALLOW_COPY_AND_ASSIGN(GLRenderer); 375 DISALLOW_COPY_AND_ASSIGN(GLRenderer);
375 }; 376 };
376 377
377 } // namespace cc 378 } // namespace cc
378 379
379 #endif // CC_OUTPUT_GL_RENDERER_H_ 380 #endif // CC_OUTPUT_GL_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/direct_renderer.cc ('k') | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698