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

Side by Side Diff: gpu/ipc/service/ca_layer_partial_damage_tree_mac.h

Issue 1845563005: Refactor content/common/gpu into gpu/ipc/service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Privatize gpu/command_buffer/service dep on gpu/command_buffer/common:common_sources Created 4 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef CONTENT_COMMON_GPU_CA_LAYER_PARTIAL_DAMAGE_TREE_MAC_H_ 5 #ifndef GPU_IPC_SERVICE_CA_LAYER_PARTIAL_DAMAGE_TREE_MAC_H_
6 #define CONTENT_COMMON_GPU_CA_LAYER_PARTIAL_DAMAGE_TREE_MAC_H_ 6 #define GPU_IPC_SERVICE_CA_LAYER_PARTIAL_DAMAGE_TREE_MAC_H_
7 7
8 #include <IOSurface/IOSurface.h> 8 #include <IOSurface/IOSurface.h>
9 #include <QuartzCore/QuartzCore.h> 9 #include <QuartzCore/QuartzCore.h>
10 #include <deque> 10 #include <deque>
11 11
12 #include "base/mac/scoped_cftyperef.h" 12 #include "base/mac/scoped_cftyperef.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "ui/gfx/geometry/rect.h" 14 #include "ui/gfx/geometry/rect.h"
15 #include "ui/gfx/geometry/rect_f.h" 15 #include "ui/gfx/geometry/rect_f.h"
16 16
17 namespace content { 17 namespace gpu {
18 18
19 class CALayerPartialDamageTree { 19 class CALayerPartialDamageTree {
20 public: 20 public:
21 CALayerPartialDamageTree(bool allow_partial_swap, 21 CALayerPartialDamageTree(bool allow_partial_swap,
22 base::ScopedCFTypeRef<IOSurfaceRef> io_surface, 22 base::ScopedCFTypeRef<IOSurfaceRef> io_surface,
23 const gfx::Rect& pixel_frame_rect); 23 const gfx::Rect& pixel_frame_rect);
24 ~CALayerPartialDamageTree(); 24 ~CALayerPartialDamageTree();
25 25
26 base::ScopedCFTypeRef<IOSurfaceRef> RootLayerIOSurface(); 26 base::ScopedCFTypeRef<IOSurfaceRef> RootLayerIOSurface();
27 void CommitCALayers(CALayer* superlayer, 27 void CommitCALayers(CALayer* superlayer,
(...skipping 18 matching lines...) Expand all
46 46
47 void UpdateCALayers(CALayer* superlayer, float scale_factor); 47 void UpdateCALayers(CALayer* superlayer, float scale_factor);
48 48
49 const bool allow_partial_swap_; 49 const bool allow_partial_swap_;
50 scoped_ptr<OverlayPlane> root_plane_; 50 scoped_ptr<OverlayPlane> root_plane_;
51 std::deque<scoped_ptr<OverlayPlane>> partial_damage_planes_; 51 std::deque<scoped_ptr<OverlayPlane>> partial_damage_planes_;
52 }; 52 };
53 53
54 } // content 54 } // content
55 55
56 #endif // CONTENT_COMMON_GPU_CA_LAYER_PARTIAL_DAMAGE_TREE_MAC_H_ 56 #endif // GPU_IPC_SERVICE_CA_LAYER_PARTIAL_DAMAGE_TREE_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698