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

Side by Side Diff: cc/skpicture_canvas_layer_texture_updater.cc

Issue 11144023: cc: Store tiles, painters, tiling data in scoped_ptr (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 2 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/skpicture_canvas_layer_texture_updater.h ('k') | cc/texture_layer.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 5
6 #include "config.h" 6 #include "config.h"
7 7
8 #include "SkPictureCanvasLayerTextureUpdater.h" 8 #include "SkPictureCanvasLayerTextureUpdater.h"
9 9
10 #include "CCTextureUpdateQueue.h" 10 #include "CCTextureUpdateQueue.h"
11 #include "LayerPainterChromium.h" 11 #include "LayerPainterChromium.h"
12 #include "SkCanvas.h" 12 #include "SkCanvas.h"
13 #include "TraceEvent.h" 13 #include "TraceEvent.h"
14 14
15 namespace cc { 15 namespace cc {
16 16
17 SkPictureCanvasLayerTextureUpdater::SkPictureCanvasLayerTextureUpdater(PassOwnPt r<LayerPainterChromium> painter) 17 SkPictureCanvasLayerTextureUpdater::SkPictureCanvasLayerTextureUpdater(scoped_pt r<LayerPainterChromium> painter)
18 : CanvasLayerTextureUpdater(painter) 18 : CanvasLayerTextureUpdater(painter.Pass())
19 , m_layerIsOpaque(false) 19 , m_layerIsOpaque(false)
20 { 20 {
21 } 21 }
22 22
23 SkPictureCanvasLayerTextureUpdater::~SkPictureCanvasLayerTextureUpdater() 23 SkPictureCanvasLayerTextureUpdater::~SkPictureCanvasLayerTextureUpdater()
24 { 24 {
25 } 25 }
26 26
27 void SkPictureCanvasLayerTextureUpdater::prepareToUpdate(const IntRect& contentR ect, const IntSize&, float contentsWidthScale, float contentsHeightScale, IntRec t& resultingOpaqueRect, CCRenderingStats& stats) 27 void SkPictureCanvasLayerTextureUpdater::prepareToUpdate(const IntRect& contentR ect, const IntSize&, float contentsWidthScale, float contentsHeightScale, IntRec t& resultingOpaqueRect, CCRenderingStats& stats)
28 { 28 {
(...skipping 16 matching lines...) Expand all
45 else 45 else
46 queue.appendFullUpload(upload); 46 queue.appendFullUpload(upload);
47 } 47 }
48 48
49 void SkPictureCanvasLayerTextureUpdater::setOpaque(bool opaque) 49 void SkPictureCanvasLayerTextureUpdater::setOpaque(bool opaque)
50 { 50 {
51 m_layerIsOpaque = opaque; 51 m_layerIsOpaque = opaque;
52 } 52 }
53 53
54 } // namespace cc 54 } // namespace cc
OLDNEW
« no previous file with comments | « cc/skpicture_canvas_layer_texture_updater.h ('k') | cc/texture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698