summaryrefslogtreecommitdiffstats
path: root/cc/quads
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-29 18:19:08 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-29 18:19:08 +0000
commitce638d154c6e8618b8df761115a5a9e2c9d8a106 (patch)
treefaff62a8bee25f77d93d6837b121ca8fa639bf29 /cc/quads
parente5bd68e150c9d2b46187d2d1a7d948f709760d34 (diff)
downloadchromium_src-ce638d154c6e8618b8df761115a5a9e2c9d8a106.zip
chromium_src-ce638d154c6e8618b8df761115a5a9e2c9d8a106.tar.gz
chromium_src-ce638d154c6e8618b8df761115a5a9e2c9d8a106.tar.bz2
cc: Add ‘chromium_code’: 1 to cc.gyp and cc_tests.gyp
And fix compile errors that it causes. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=191364 Review URL: https://codereview.chromium.org/13206004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191400 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/quads')
-rw-r--r--cc/quads/draw_quad_unittest.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/cc/quads/draw_quad_unittest.cc b/cc/quads/draw_quad_unittest.cc
index 043a785..7177e6b 100644
--- a/cc/quads/draw_quad_unittest.cc
+++ b/cc/quads/draw_quad_unittest.cc
@@ -7,6 +7,7 @@
#include <algorithm>
#include "base/bind.h"
+#include "base/compiler_specific.h"
#include "cc/base/math_util.h"
#include "cc/quads/checkerboard_draw_quad.h"
#include "cc/quads/debug_border_draw_quad.h"
@@ -88,13 +89,13 @@ void CompareDrawQuad(DrawQuad* quad,
#define QUAD_DATA \
gfx::Rect quad_rect(30, 40, 50, 60); \
gfx::Rect quad_visible_rect(40, 50, 30, 20); \
- gfx::Rect quad_opaque_rect(60, 55, 10, 10); \
- bool needs_blending = true;
+ gfx::Rect ALLOW_UNUSED quad_opaque_rect(60, 55, 10, 10); \
+ bool ALLOW_UNUSED needs_blending = true;
#define SETUP_AND_COPY_QUAD_NEW(Type, quad) \
scoped_ptr<DrawQuad> copy_new(quad_new->Copy(copy_shared_state.get())); \
CompareDrawQuad(quad_new.get(), copy_new.get(), copy_shared_state.get()); \
- const Type* copy_quad = Type::MaterialCast(copy_new.get());
+ const Type* ALLOW_UNUSED copy_quad = Type::MaterialCast(copy_new.get());
#define SETUP_AND_COPY_QUAD_ALL(Type, quad) \
scoped_ptr<DrawQuad> copy_all(quad_all->Copy(copy_shared_state.get())); \
@@ -104,7 +105,7 @@ void CompareDrawQuad(DrawQuad* quad,
#define SETUP_AND_COPY_QUAD_NEW_1(Type, quad, a) \
scoped_ptr<DrawQuad> copy_new(quad_new->Copy(copy_shared_state.get(), a)); \
CompareDrawQuad(quad_new.get(), copy_new.get(), copy_shared_state.get()); \
- const Type* copy_quad = Type::MaterialCast(copy_new.get());
+ const Type* ALLOW_UNUSED copy_quad = Type::MaterialCast(copy_new.get());
#define SETUP_AND_COPY_QUAD_ALL_1(Type, quad, a) \
scoped_ptr<DrawQuad> copy_all(quad_all->Copy(copy_shared_state.get(), a)); \
@@ -661,7 +662,6 @@ TEST(DrawQuadTest, CopyYUVVideoDrawQuad) {
TEST(DrawQuadTest, CopyPictureDrawQuad) {
gfx::Rect opaque_rect(33, 44, 22, 33);
- unsigned resource_id = 104;
gfx::RectF tex_coord_rect(31.f, 12.f, 54.f, 20.f);
gfx::Size texture_size(85, 32);
bool swizzle_contents = true;
@@ -874,7 +874,6 @@ TEST_F(DrawQuadIteratorTest, YUVVideoDrawQuad) {
TEST_F(DrawQuadIteratorTest, PictureDrawQuad) {
gfx::Rect opaque_rect(33, 44, 22, 33);
- unsigned resource_id = 104;
gfx::RectF tex_coord_rect(31.f, 12.f, 54.f, 20.f);
gfx::Size texture_size(85, 32);
bool swizzle_contents = true;