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

Side by Side Diff: cc/layers/picture_image_layer.cc

Issue 761903003: Update from https://crrev.com/306655 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « cc/layers/picture_image_layer.h ('k') | cc/layers/picture_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 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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/layers/picture_image_layer.h" 5 #include "cc/layers/picture_image_layer.h"
6 6
7 #include "cc/layers/picture_image_layer_impl.h" 7 #include "cc/layers/picture_image_layer_impl.h"
8 #include "third_party/skia/include/core/SkCanvas.h" 8 #include "third_party/skia/include/core/SkCanvas.h"
9 9
10 namespace cc { 10 namespace cc {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 SkScalar content_to_layer_scale_y = 53 SkScalar content_to_layer_scale_y =
54 SkFloatToScalar(static_cast<float>(bounds().height()) / bitmap_.height()); 54 SkFloatToScalar(static_cast<float>(bounds().height()) / bitmap_.height());
55 canvas->scale(content_to_layer_scale_x, content_to_layer_scale_y); 55 canvas->scale(content_to_layer_scale_x, content_to_layer_scale_y);
56 56
57 // Because Android WebView resourceless software draw mode rasters directly 57 // Because Android WebView resourceless software draw mode rasters directly
58 // to the root canvas, this draw must use the kSrcOver_Mode so that 58 // to the root canvas, this draw must use the kSrcOver_Mode so that
59 // transparent images blend correctly. 59 // transparent images blend correctly.
60 canvas->drawBitmap(bitmap_, 0, 0); 60 canvas->drawBitmap(bitmap_, 0, 0);
61 } 61 }
62 62
63 scoped_refptr<DisplayItemList> PictureImageLayer::PaintContentsToDisplayList(
64 const gfx::Rect& clip,
65 GraphicsContextStatus gc_status) {
66 NOTIMPLEMENTED();
67 return DisplayItemList::Create();
68 }
69
63 bool PictureImageLayer::FillsBoundsCompletely() const { 70 bool PictureImageLayer::FillsBoundsCompletely() const {
64 return false; 71 return false;
65 } 72 }
66 73
67 } // namespace cc 74 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/picture_image_layer.h ('k') | cc/layers/picture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698