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

Side by Side Diff: cc/paint/draw_image.cc

Issue 2924233002: cc: Move pre-decodes to background worker. (Closed)
Patch Set: flake is flaky. T_T Created 3 years, 6 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
« no previous file with comments | « cc/paint/draw_image.h ('k') | cc/test/fake_layer_tree_host_impl_client.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/paint/draw_image.h" 5 #include "cc/paint/draw_image.h"
6 6
7 namespace cc { 7 namespace cc {
8 namespace { 8 namespace {
9 9
10 // Helper funciton to extract a scale from the matrix. Returns true on success 10 // Helper funciton to extract a scale from the matrix. Returns true on success
(...skipping 28 matching lines...) Expand all
39 filter_quality_(filter_quality), 39 filter_quality_(filter_quality),
40 matrix_(matrix), 40 matrix_(matrix),
41 target_color_space_(target_color_space) { 41 target_color_space_(target_color_space) {
42 matrix_is_decomposable_ = ExtractScale(matrix_, &scale_); 42 matrix_is_decomposable_ = ExtractScale(matrix_, &scale_);
43 } 43 }
44 44
45 DrawImage::DrawImage(const DrawImage& other) = default; 45 DrawImage::DrawImage(const DrawImage& other) = default;
46 46
47 DrawImage::~DrawImage() = default; 47 DrawImage::~DrawImage() = default;
48 48
49 bool DrawImage::operator==(const DrawImage& other) const {
50 return paint_image_ == other.paint_image_ && src_rect_ == other.src_rect_ &&
51 filter_quality_ == other.filter_quality_ && matrix_ == other.matrix_ &&
52 scale_ == other.scale_ &&
53 matrix_is_decomposable_ == other.matrix_is_decomposable_ &&
54 target_color_space_ == other.target_color_space_;
55 }
56
49 } // namespace cc 57 } // namespace cc
OLDNEW
« no previous file with comments | « cc/paint/draw_image.h ('k') | cc/test/fake_layer_tree_host_impl_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698