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

Side by Side Diff: content/browser/compositor/software_output_device_ozone_unittest.cc

Issue 832953002: Cleanup: Update the path to gfx size headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "cc/output/software_frame_data.h" 7 #include "cc/output/software_frame_data.h"
8 #include "content/browser/compositor/software_output_device_ozone.h" 8 #include "content/browser/compositor/software_output_device_ozone.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "third_party/skia/include/core/SkDevice.h" 10 #include "third_party/skia/include/core/SkDevice.h"
11 #include "third_party/skia/include/core/SkSurface.h" 11 #include "third_party/skia/include/core/SkSurface.h"
12 #include "ui/compositor/compositor.h" 12 #include "ui/compositor/compositor.h"
13 #include "ui/compositor/test/context_factories_for_test.h" 13 #include "ui/compositor/test/context_factories_for_test.h"
14 #include "ui/gfx/size.h" 14 #include "ui/gfx/geometry/size.h"
15 #include "ui/gfx/skia_util.h" 15 #include "ui/gfx/skia_util.h"
16 #include "ui/gfx/vsync_provider.h" 16 #include "ui/gfx/vsync_provider.h"
17 #include "ui/gl/gl_implementation.h" 17 #include "ui/gl/gl_implementation.h"
18 #include "ui/ozone/public/ozone_platform.h" 18 #include "ui/ozone/public/ozone_platform.h"
19 #include "ui/ozone/public/surface_ozone_canvas.h" 19 #include "ui/ozone/public/surface_ozone_canvas.h"
20 #include "ui/platform_window/platform_window.h" 20 #include "ui/platform_window/platform_window.h"
21 #include "ui/platform_window/platform_window_delegate.h" 21 #include "ui/platform_window/platform_window_delegate.h"
22 22
23 namespace { 23 namespace {
24 24
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 const SkPMColor black = SkPreMultiplyColor(SK_ColorBLACK); 167 const SkPMColor black = SkPreMultiplyColor(SK_ColorBLACK);
168 for (int i = 0; i < area.height(); ++i) { 168 for (int i = 0; i < area.height(); ++i) {
169 for (int j = 0; j < area.width(); ++j) { 169 for (int j = 0; j < area.width(); ++j) {
170 if (j < damage.width() && i < damage.height()) 170 if (j < damage.width() && i < damage.height())
171 EXPECT_EQ(white, pixels[i * area.width() + j]); 171 EXPECT_EQ(white, pixels[i * area.width() + j]);
172 else 172 else
173 EXPECT_EQ(black, pixels[i * area.width() + j]); 173 EXPECT_EQ(black, pixels[i * area.width() + j]);
174 } 174 }
175 } 175 }
176 } 176 }
OLDNEW
« no previous file with comments | « content/browser/compositor/resize_lock.h ('k') | content/browser/devtools/protocol/color_picker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698