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

Side by Side Diff: android_webview/browser/browser_view_renderer.h

Issue 1939783002: Remove all uses of skia::RefPtr and stale includes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Florin's nits Created 4 years, 7 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 | « no previous file | android_webview/browser/browser_view_renderer.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
11 11
12 #include "android_webview/browser/compositor_frame_producer.h" 12 #include "android_webview/browser/compositor_frame_producer.h"
13 #include "android_webview/browser/parent_compositor_draw_constraints.h" 13 #include "android_webview/browser/parent_compositor_draw_constraints.h"
14 #include "base/callback.h" 14 #include "base/callback.h"
15 #include "base/cancelable_callback.h" 15 #include "base/cancelable_callback.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/trace_event/trace_event.h" 17 #include "base/trace_event/trace_event.h"
18 #include "content/public/browser/android/synchronous_compositor.h" 18 #include "content/public/browser/android/synchronous_compositor.h"
19 #include "content/public/browser/android/synchronous_compositor_client.h" 19 #include "content/public/browser/android/synchronous_compositor_client.h"
20 #include "skia/ext/refptr.h" 20 #include "third_party/skia/include/core/SkRefCnt.h"
21 #include "ui/gfx/geometry/rect.h" 21 #include "ui/gfx/geometry/rect.h"
22 #include "ui/gfx/geometry/size_f.h" 22 #include "ui/gfx/geometry/size_f.h"
23 #include "ui/gfx/geometry/vector2d_f.h" 23 #include "ui/gfx/geometry/vector2d_f.h"
24 24
25 class SkCanvas; 25 class SkCanvas;
26 class SkPicture; 26 class SkPicture;
27 27
28 namespace content { 28 namespace content {
29 class WebContents; 29 class WebContents;
30 } 30 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // in window coordinates. 63 // in window coordinates.
64 void PrepareToDraw(const gfx::Vector2d& scroll, 64 void PrepareToDraw(const gfx::Vector2d& scroll,
65 const gfx::Rect& global_visible_rect); 65 const gfx::Rect& global_visible_rect);
66 66
67 // Main handlers for view drawing. A false return value indicates no new 67 // Main handlers for view drawing. A false return value indicates no new
68 // frame is produced. 68 // frame is produced.
69 bool OnDrawHardware(); 69 bool OnDrawHardware();
70 bool OnDrawSoftware(SkCanvas* canvas); 70 bool OnDrawSoftware(SkCanvas* canvas);
71 71
72 // CapturePicture API methods. 72 // CapturePicture API methods.
73 skia::RefPtr<SkPicture> CapturePicture(int width, int height); 73 sk_sp<SkPicture> CapturePicture(int width, int height);
74 void EnableOnNewPicture(bool enabled); 74 void EnableOnNewPicture(bool enabled);
75 75
76 void ClearView(); 76 void ClearView();
77 77
78 void SetOffscreenPreRaster(bool enabled); 78 void SetOffscreenPreRaster(bool enabled);
79 79
80 // View update notifications. 80 // View update notifications.
81 void SetIsPaused(bool paused); 81 void SetIsPaused(bool paused);
82 void SetViewVisibility(bool visible); 82 void SetViewVisibility(bool visible);
83 void SetWindowVisibility(bool visible); 83 void SetWindowVisibility(bool visible);
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 uint32_t next_compositor_id_; 199 uint32_t next_compositor_id_;
200 200
201 ParentCompositorDrawConstraints external_draw_constraints_; 201 ParentCompositorDrawConstraints external_draw_constraints_;
202 202
203 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); 203 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer);
204 }; 204 };
205 205
206 } // namespace android_webview 206 } // namespace android_webview
207 207
208 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 208 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/browser_view_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698