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

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: fixed a signed vs. unsigned comparison in video_resource_updater.cc 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
« no previous file with comments | « cc/layers/tiled_layer_unittest.cc ('k') | cc/output/direct_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 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 void SetScissorStateForQuad(const DrawingFrame* frame, const DrawQuad& quad); 98 void SetScissorStateForQuad(const DrawingFrame* frame, const DrawQuad& quad);
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 ResourceFormat RenderPassTextureFormat(const RenderPass* render_pass);
109 109
110 void DrawRenderPass(DrawingFrame* frame, 110 void DrawRenderPass(DrawingFrame* frame,
111 const RenderPass* render_pass, 111 const RenderPass* render_pass,
112 bool allow_partial_swap); 112 bool allow_partial_swap);
113 bool UseRenderPass(DrawingFrame* frame, const RenderPass* render_pass); 113 bool UseRenderPass(DrawingFrame* frame, const RenderPass* render_pass);
114 114
115 virtual void BindFramebufferToOutputSurface(DrawingFrame* frame) = 0; 115 virtual void BindFramebufferToOutputSurface(DrawingFrame* frame) = 0;
116 virtual bool BindFramebufferToTexture(DrawingFrame* frame, 116 virtual bool BindFramebufferToTexture(DrawingFrame* frame,
117 const ScopedResource* resource, 117 const ScopedResource* resource,
118 gfx::Rect target_rect) = 0; 118 gfx::Rect target_rect) = 0;
(...skipping 29 matching lines...) Expand all
148 148
149 private: 149 private:
150 gfx::Vector2d enlarge_pass_texture_amount_; 150 gfx::Vector2d enlarge_pass_texture_amount_;
151 151
152 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 152 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
153 }; 153 };
154 154
155 } // namespace cc 155 } // namespace cc
156 156
157 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ 157 #endif // CC_OUTPUT_DIRECT_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/layers/tiled_layer_unittest.cc ('k') | cc/output/direct_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698