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

Unified Diff: cc/output/direct_renderer.h

Issue 15579002: Implement transform/clip support for Android WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add tests Created 7 years, 7 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
Index: cc/output/direct_renderer.h
diff --git a/cc/output/direct_renderer.h b/cc/output/direct_renderer.h
index 4baadeecbfbfd34f7312747441ae2abda5f3c2d8..b8d2b126f76e90d41c645ef1e2427a0ac40a41b2 100644
--- a/cc/output/direct_renderer.h
+++ b/cc/output/direct_renderer.h
@@ -50,7 +50,9 @@ class CC_EXPORT DirectRenderer : public Renderer {
void SetEnlargePassTextureAmountForTesting(gfx::Vector2d amount);
protected:
- DirectRenderer(RendererClient* client, ResourceProvider* resource_provider);
+ DirectRenderer(RendererClient* client,
+ OutputSurface* output_surface,
+ ResourceProvider* resource_provider);
class CachedResource : public ScopedResource {
public:
@@ -80,9 +82,10 @@ class CC_EXPORT DirectRenderer : public Renderer {
const gfx::RectF& quad_rect);
static void InitializeMatrices(DrawingFrame* frame,
gfx::Rect draw_rect,
+ gfx::Rect window_rect,
bool flip_y);
- static gfx::Rect MoveScissorToWindowSpace(const DrawingFrame* frame,
- const gfx::RectF& scissor_rect);
+ gfx::Rect MoveScissorToWindowSpace(const DrawingFrame* frame,
+ const gfx::RectF& scissor_rect);
static gfx::RectF ComputeScissorRectForRenderPass(const DrawingFrame* frame);
void SetScissorStateForQuad(const DrawingFrame* frame, const DrawQuad& quad);
void SetScissorStateForQuadWithRenderPassScissor(
@@ -101,7 +104,7 @@ class CC_EXPORT DirectRenderer : public Renderer {
virtual bool BindFramebufferToTexture(DrawingFrame* frame,
const ScopedResource* resource,
gfx::Rect framebuffer_rect) = 0;
- virtual void SetDrawViewportSize(gfx::Size viewport_size) = 0;
+ virtual void SetDrawViewport(gfx::Rect viewport) = 0;
virtual void SetScissorTestRect(gfx::Rect scissor_rect) = 0;
virtual void ClearFramebuffer(DrawingFrame* frame) = 0;
virtual void DoDrawQuad(DrawingFrame* frame, const DrawQuad* quad) = 0;
@@ -117,6 +120,7 @@ class CC_EXPORT DirectRenderer : public Renderer {
scoped_ptr<CopyOutputRequest> request) = 0;
ScopedPtrHashMap<RenderPass::Id, CachedResource> render_pass_textures_;
+ OutputSurface* output_surface_;
ResourceProvider* resource_provider_;
private:

Powered by Google App Engine
This is Rietveld 408576698