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

Side by Side Diff: content/browser/compositor/browser_compositor_ca_layer_tree_mac.h

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 #ifndef CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_CA_LAYER_TREE_MAC_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_CA_LAYER_TREE_MAC_H_
6 #define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_CA_LAYER_TREE_MAC_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_CA_LAYER_TREE_MAC_H_
7 7
8 #include <IOSurface/IOSurfaceAPI.h> 8 #include <IOSurface/IOSurfaceAPI.h>
9 9
10 #include "content/browser/compositor/browser_compositor_view_mac.h" 10 #include "content/browser/compositor/browser_compositor_view_mac.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void GotAcceleratedFrame( 54 void GotAcceleratedFrame(
55 uint64 surface_handle, int output_surface_id, 55 uint64 surface_handle, int output_surface_id,
56 const std::vector<ui::LatencyInfo>& latency_info, 56 const std::vector<ui::LatencyInfo>& latency_info,
57 gfx::Size pixel_size, float scale_factor); 57 gfx::Size pixel_size, float scale_factor);
58 58
59 void GotSoftwareFrame( 59 void GotSoftwareFrame(
60 cc::SoftwareFrameData* frame_data, float scale_factor, SkCanvas* canvas); 60 cc::SoftwareFrameData* frame_data, float scale_factor, SkCanvas* canvas);
61 61
62 private: 62 private:
63 // IOSurfaceLayerClient implementation: 63 // IOSurfaceLayerClient implementation:
64 virtual bool IOSurfaceLayerShouldAckImmediately() const override; 64 bool IOSurfaceLayerShouldAckImmediately() const override;
65 virtual void IOSurfaceLayerDidDrawFrame() override; 65 void IOSurfaceLayerDidDrawFrame() override;
66 virtual void IOSurfaceLayerHitError() override; 66 void IOSurfaceLayerHitError() override;
67 67
68 void GotAcceleratedCAContextFrame( 68 void GotAcceleratedCAContextFrame(
69 CAContextID ca_context_id, gfx::Size pixel_size, float scale_factor); 69 CAContextID ca_context_id, gfx::Size pixel_size, float scale_factor);
70 70
71 void GotAcceleratedIOSurfaceFrame( 71 void GotAcceleratedIOSurfaceFrame(
72 IOSurfaceID io_surface_id, gfx::Size pixel_size, float scale_factor); 72 IOSurfaceID io_surface_id, gfx::Size pixel_size, float scale_factor);
73 73
74 // Remove a layer from the heirarchy and destroy it. Because the accelerated 74 // Remove a layer from the heirarchy and destroy it. Because the accelerated
75 // layer types may be replaced by a layer of the same type, the layer to 75 // layer types may be replaced by a layer of the same type, the layer to
76 // destroy is parameterized, and, if it is the current layer, the current 76 // destroy is parameterized, and, if it is the current layer, the current
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 gfx::Size pixel_size, float scale_factor, 127 gfx::Size pixel_size, float scale_factor,
128 bool* disable_throttling, int* renderer_id); 128 bool* disable_throttling, int* renderer_id);
129 129
130 void BrowserCompositorCALayerTreeMacGotSoftwareFrame( 130 void BrowserCompositorCALayerTreeMacGotSoftwareFrame(
131 gfx::AcceleratedWidget widget, 131 gfx::AcceleratedWidget widget,
132 cc::SoftwareFrameData* frame_data, float scale_factor, SkCanvas* canvas); 132 cc::SoftwareFrameData* frame_data, float scale_factor, SkCanvas* canvas);
133 133
134 } // namespace content 134 } // namespace content
135 135
136 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_CA_LAYER_TREE_MAC_H_ 136 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_CA_LAYER_TREE_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698