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

Side by Side Diff: cc/SkPictureCanvasLayerTextureUpdater.cpp

Issue 11122003: [cc] Rename all cc/ filenames to Chromium style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/SkPictureCanvasLayerTextureUpdater.h ('k') | cc/SolidColorLayerChromium.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5
6 #include "config.h"
7
8 #if USE(ACCELERATED_COMPOSITING)
9
10 #include "SkPictureCanvasLayerTextureUpdater.h"
11
12 #include "LayerPainterChromium.h"
13 #include "SkCanvas.h"
14 #include "TraceEvent.h"
15
16 namespace cc {
17
18 SkPictureCanvasLayerTextureUpdater::SkPictureCanvasLayerTextureUpdater(PassOwnPt r<LayerPainterChromium> painter)
19 : CanvasLayerTextureUpdater(painter)
20 , m_layerIsOpaque(false)
21 {
22 }
23
24 SkPictureCanvasLayerTextureUpdater::~SkPictureCanvasLayerTextureUpdater()
25 {
26 }
27
28 void SkPictureCanvasLayerTextureUpdater::prepareToUpdate(const IntRect& contentR ect, const IntSize&, float contentsWidthScale, float contentsHeightScale, IntRec t& resultingOpaqueRect, CCRenderingStats& stats)
29 {
30 SkCanvas* canvas = m_picture.beginRecording(contentRect.width(), contentRect .height());
31 paintContents(canvas, contentRect, contentsWidthScale, contentsHeightScale, resultingOpaqueRect, stats);
32 m_picture.endRecording();
33 }
34
35 void SkPictureCanvasLayerTextureUpdater::drawPicture(SkCanvas* canvas)
36 {
37 TRACE_EVENT0("cc", "SkPictureCanvasLayerTextureUpdater::drawPicture");
38 canvas->drawPicture(m_picture);
39 }
40
41 void SkPictureCanvasLayerTextureUpdater::setOpaque(bool opaque)
42 {
43 m_layerIsOpaque = opaque;
44 }
45
46 } // namespace cc
47 #endif // USE(ACCELERATED_COMPOSITING)
OLDNEW
« no previous file with comments | « cc/SkPictureCanvasLayerTextureUpdater.h ('k') | cc/SolidColorLayerChromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698