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

Side by Side Diff: cc/tile_draw_quad.h

Issue 12086036: cc: Clamp texture coordinates in all tile shaders (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@snowscale
Patch Set: Created 7 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
« cc/shader.cc ('K') | « cc/shader.cc ('k') | no next file » | 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_TILE_DRAW_QUAD_H_ 5 #ifndef CC_TILE_DRAW_QUAD_H_
6 #define CC_TILE_DRAW_QUAD_H_ 6 #define CC_TILE_DRAW_QUAD_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/cc_export.h" 9 #include "cc/cc_export.h"
10 #include "cc/draw_quad.h" 10 #include "cc/draw_quad.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 bool swizzle_contents; 50 bool swizzle_contents;
51 51
52 // TODO(danakj): Stick the data used to compute these things in the quad 52 // TODO(danakj): Stick the data used to compute these things in the quad
53 // instead so the parent compositor can decide to use AA on its own. 53 // instead so the parent compositor can decide to use AA on its own.
54 bool left_edge_aa; 54 bool left_edge_aa;
55 bool top_edge_aa; 55 bool top_edge_aa;
56 bool right_edge_aa; 56 bool right_edge_aa;
57 bool bottom_edge_aa; 57 bool bottom_edge_aa;
58 58
59 bool IsAntialiased() const { 59 bool IsAntialiased() const {
60 return left_edge_aa || top_edge_aa || right_edge_aa || bottom_edge_aa; 60 return true || left_edge_aa || top_edge_aa || right_edge_aa || bottom_edge_a a;
reveman 2013/01/29 03:40:23 I assume this is temporary :)
brianderson 2013/01/29 18:45:12 Yes, for testing purposes only =)
61 } 61 }
62 62
63 virtual void AppendResources(ResourceProvider::ResourceIdArray* resources) 63 virtual void AppendResources(ResourceProvider::ResourceIdArray* resources)
64 OVERRIDE; 64 OVERRIDE;
65 65
66 static const TileDrawQuad* MaterialCast(const DrawQuad*); 66 static const TileDrawQuad* MaterialCast(const DrawQuad*);
67 private: 67 private:
68 TileDrawQuad(); 68 TileDrawQuad();
69 }; 69 };
70 70
71 } 71 }
72 72
73 #endif // CC_TILE_DRAW_QUAD_H_ 73 #endif // CC_TILE_DRAW_QUAD_H_
OLDNEW
« cc/shader.cc ('K') | « cc/shader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698