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

Unified Diff: cc/output/direct_renderer.h

Issue 1035863002: Remove SetDrawViewport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/output/direct_renderer.cc » ('j') | cc/output/gl_renderer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/direct_renderer.h
diff --git a/cc/output/direct_renderer.h b/cc/output/direct_renderer.h
index dd3d13b455fbbb01f823bdad0343e7290124d8c5..cad77554fafe795b23d3067474d00badb70a04e2 100644
--- a/cc/output/direct_renderer.h
+++ b/cc/output/direct_renderer.h
@@ -115,7 +115,6 @@ class CC_EXPORT DirectRenderer : public Renderer {
virtual bool BindFramebufferToTexture(DrawingFrame* frame,
const ScopedResource* resource,
const gfx::Rect& target_rect) = 0;
- virtual void SetDrawViewport(const gfx::Rect& window_space_viewport) = 0;
virtual void SetScissorTestRect(const gfx::Rect& scissor_rect) = 0;
virtual void PrepareSurfaceForPass(
DrawingFrame* frame,
@@ -146,13 +145,14 @@ class CC_EXPORT DirectRenderer : public Renderer {
scoped_ptr<OverlayProcessor> overlay_processor_;
// For use in coordinate conversion, this stores the output rect, viewport
- // rect (= unflipped version of glViewport rect), and the size of target
- // framebuffer. During a draw, this stores the values for the current render
- // pass; in between draws, they retain the values for the root render pass of
- // the last draw.
+ // rect (= unflipped version of glViewport rect), the size of target
+ // framebuffer, and the current window space viewport. During a draw, this
+ // stores the values for the current render pass; in between draws, they
+ // retain the values for the root render pass of the last draw.
gfx::Rect current_draw_rect_;
gfx::Rect current_viewport_rect_;
gfx::Size current_surface_size_;
+ gfx::Rect current_window_space_viewport_;
private:
gfx::Vector2d enlarge_pass_texture_amount_;
« no previous file with comments | « no previous file | cc/output/direct_renderer.cc » ('j') | cc/output/gl_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698