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

Side by Side Diff: cc/CCHeadsUpDisplayLayerImpl.cpp

Issue 10914268: Change cc files from namespace WebCore to cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 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 | Annotate | Revision Log
« no previous file with comments | « cc/CCHeadsUpDisplayLayerImpl.h ('k') | cc/CCHeadsUpDisplayTest.cpp » ('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 #include "config.h" 5 #include "config.h"
6 6
7 #include "CCHeadsUpDisplayLayerImpl.h" 7 #include "CCHeadsUpDisplayLayerImpl.h"
8 8
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "CCDebugRectHistory.h" 10 #include "CCDebugRectHistory.h"
11 #include "CCFontAtlas.h" 11 #include "CCFontAtlas.h"
12 #include "CCFrameRateCounter.h" 12 #include "CCFrameRateCounter.h"
13 #include "CCLayerTreeHostImpl.h" 13 #include "CCLayerTreeHostImpl.h"
14 #include "CCQuadSink.h" 14 #include "CCQuadSink.h"
15 #include "CCTextureDrawQuad.h" 15 #include "CCTextureDrawQuad.h"
16 #include "Extensions3DChromium.h" 16 #include "Extensions3DChromium.h"
17 #include "GraphicsContext3D.h" 17 #include "GraphicsContext3D.h"
18 #include "SkBitmap.h" 18 #include "SkBitmap.h"
19 #include "SkColorMatrixFilter.h" 19 #include "SkColorMatrixFilter.h"
20 #include "SkPaint.h" 20 #include "SkPaint.h"
21 #include "skia/ext/platform_canvas.h" 21 #include "skia/ext/platform_canvas.h"
22 22
23 namespace WebCore { 23 namespace cc {
24 24
25 static inline SkPaint createPaint() 25 static inline SkPaint createPaint()
26 { 26 {
27 // The SkCanvas is in RGBA but the shader is expecting BGRA, so we need to 27 // The SkCanvas is in RGBA but the shader is expecting BGRA, so we need to
28 // swizzle our colors when drawing to the SkCanvas. 28 // swizzle our colors when drawing to the SkCanvas.
29 SkColorMatrix swizzleMatrix; 29 SkColorMatrix swizzleMatrix;
30 for (int i = 0; i < 20; ++i) 30 for (int i = 0; i < 20; ++i)
31 swizzleMatrix.fMat[i] = 0; 31 swizzleMatrix.fMat[i] = 0;
32 swizzleMatrix.fMat[0 + 5 * 2] = 1; 32 swizzleMatrix.fMat[0 + 5 * 2] = 1;
33 swizzleMatrix.fMat[1 + 5 * 1] = 1; 33 swizzleMatrix.fMat[1 + 5 * 1] = 1;
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 canvas->drawRect(skRect, paint); 276 canvas->drawRect(skRect, paint);
277 277
278 paint.setColor(strokeColor); 278 paint.setColor(strokeColor);
279 paint.setStyle(SkPaint::kStroke_Style); 279 paint.setStyle(SkPaint::kStroke_Style);
280 paint.setStrokeWidth(2); 280 paint.setStrokeWidth(2);
281 canvas->drawRect(skRect, paint); 281 canvas->drawRect(skRect, paint);
282 } 282 }
283 } 283 }
284 284
285 } 285 }
OLDNEW
« no previous file with comments | « cc/CCHeadsUpDisplayLayerImpl.h ('k') | cc/CCHeadsUpDisplayTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698