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

Side by Side Diff: cc/heads_up_display_layer_impl.cc

Issue 11519018: [cc] Make LayerImpls point at LayerTreeImpl instead of LTHI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
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 "cc/heads_up_display_layer_impl.h" 5 #include "cc/heads_up_display_layer_impl.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "cc/debug_colors.h" 10 #include "cc/debug_colors.h"
(...skipping 28 matching lines...) Expand all
39 swizzleMatrix.fMat[3 + 5 * 3] = 1; 39 swizzleMatrix.fMat[3 + 5 * 3] = 1;
40 40
41 SkPaint paint; 41 SkPaint paint;
42 skia::RefPtr<SkColorMatrixFilter> filter = 42 skia::RefPtr<SkColorMatrixFilter> filter =
43 skia::AdoptRef(new SkColorMatrixFilter(swizzleMatrix)); 43 skia::AdoptRef(new SkColorMatrixFilter(swizzleMatrix));
44 paint.setColorFilter(filter.get()); 44 paint.setColorFilter(filter.get());
45 45
46 return paint; 46 return paint;
47 } 47 }
48 48
49 HeadsUpDisplayLayerImpl::HeadsUpDisplayLayerImpl(LayerTreeHostImpl* hostImpl, in t id) 49 HeadsUpDisplayLayerImpl::HeadsUpDisplayLayerImpl(LayerTreeImpl* treeImpl, int id )
50 : LayerImpl(hostImpl, id) 50 : LayerImpl(treeImpl, id)
51 , m_averageFPS(0) 51 , m_averageFPS(0)
52 , m_minFPS(0) 52 , m_minFPS(0)
53 , m_maxFPS(0) 53 , m_maxFPS(0)
54 { 54 {
55 } 55 }
56 56
57 HeadsUpDisplayLayerImpl::~HeadsUpDisplayLayerImpl() 57 HeadsUpDisplayLayerImpl::~HeadsUpDisplayLayerImpl()
58 { 58 {
59 } 59 }
60 60
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 375
376 canvas->restore(); 376 canvas->restore();
377 } 377 }
378 378
379 const char* HeadsUpDisplayLayerImpl::layerTypeAsString() const 379 const char* HeadsUpDisplayLayerImpl::layerTypeAsString() const
380 { 380 {
381 return "HeadsUpDisplayLayer"; 381 return "HeadsUpDisplayLayer";
382 } 382 }
383 383
384 } // namespace cc 384 } // namespace cc
OLDNEW
« no previous file with comments | « cc/heads_up_display_layer_impl.h ('k') | cc/io_surface_layer.h » ('j') | cc/layer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698