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

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

Issue 21159007: cc: Adding support for RGBA_4444 tile textures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and feedback Created 7 years, 3 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_DIRECT_RENDERER_H_ 5 #ifndef CC_OUTPUT_DIRECT_RENDERER_H_
6 #define CC_OUTPUT_DIRECT_RENDERER_H_ 6 #define CC_OUTPUT_DIRECT_RENDERER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/containers/scoped_ptr_hash_map.h" 10 #include "base/containers/scoped_ptr_hash_map.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 void SetScissorStateForQuadWithRenderPassScissor( 99 void SetScissorStateForQuadWithRenderPassScissor(
100 const DrawingFrame* frame, 100 const DrawingFrame* frame,
101 const DrawQuad& quad, 101 const DrawQuad& quad,
102 const gfx::RectF& render_pass_scissor, 102 const gfx::RectF& render_pass_scissor,
103 bool* should_skip_quad); 103 bool* should_skip_quad);
104 void SetScissorTestRectInDrawSpace(const DrawingFrame* frame, 104 void SetScissorTestRectInDrawSpace(const DrawingFrame* frame,
105 gfx::RectF draw_space_rect); 105 gfx::RectF draw_space_rect);
106 106
107 static gfx::Size RenderPassTextureSize(const RenderPass* render_pass); 107 static gfx::Size RenderPassTextureSize(const RenderPass* render_pass);
108 static GLenum RenderPassTextureFormat(const RenderPass* render_pass); 108 static GLenum RenderPassTextureFormat(const RenderPass* render_pass);
109 static ResourceProvider::TextureType RenderPassTextureType(
110 const RenderPass* render_pass);
109 111
110 void DrawRenderPass(DrawingFrame* frame, 112 void DrawRenderPass(DrawingFrame* frame,
111 const RenderPass* render_pass, 113 const RenderPass* render_pass,
112 bool allow_partial_swap); 114 bool allow_partial_swap);
113 bool UseRenderPass(DrawingFrame* frame, const RenderPass* render_pass); 115 bool UseRenderPass(DrawingFrame* frame, const RenderPass* render_pass);
114 116
115 virtual void BindFramebufferToOutputSurface(DrawingFrame* frame) = 0; 117 virtual void BindFramebufferToOutputSurface(DrawingFrame* frame) = 0;
116 virtual bool BindFramebufferToTexture(DrawingFrame* frame, 118 virtual bool BindFramebufferToTexture(DrawingFrame* frame,
117 const ScopedResource* resource, 119 const ScopedResource* resource,
118 gfx::Rect target_rect) = 0; 120 gfx::Rect target_rect) = 0;
(...skipping 29 matching lines...) Expand all
148 150
149 private: 151 private:
150 gfx::Vector2d enlarge_pass_texture_amount_; 152 gfx::Vector2d enlarge_pass_texture_amount_;
151 153
152 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 154 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
153 }; 155 };
154 156
155 } // namespace cc 157 } // namespace cc
156 158
157 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ 159 #endif // CC_OUTPUT_DIRECT_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698