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

Side by Side Diff: content/renderer/android/synchronous_compositor_output_surface.h

Issue 15579002: Implement transform/clip support for Android WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address joth's code review Created 7 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
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 CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_RENDERER_ANDOIRD_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_RENDERER_ANDOIRD_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual bool DemandDrawSw(SkCanvas* canvas) OVERRIDE; 46 virtual bool DemandDrawSw(SkCanvas* canvas) OVERRIDE;
47 virtual bool DemandDrawHw( 47 virtual bool DemandDrawHw(
48 gfx::Size view_size, 48 gfx::Size view_size,
49 const gfx::Transform& transform, 49 const gfx::Transform& transform,
50 gfx::Rect clip) OVERRIDE; 50 gfx::Rect clip) OVERRIDE;
51 51
52 private: 52 private:
53 class SoftwareDevice; 53 class SoftwareDevice;
54 friend class SoftwareDevice; 54 friend class SoftwareDevice;
55 55
56 void InvokeComposite(const gfx::Transform& transform, gfx::Rect damage_area); 56 void InvokeComposite(gfx::Size damage_size);
57 void UpdateCompositorClientSettings(); 57 void UpdateCompositorClientSettings();
58 void NotifyCompositorSettingsChanged(); 58 void NotifyCompositorSettingsChanged();
59 bool CalledOnValidThread() const; 59 bool CalledOnValidThread() const;
60 60
61 SynchronousCompositorClient* compositor_client_; 61 SynchronousCompositorClient* compositor_client_;
62 int routing_id_; 62 int routing_id_;
63 bool needs_begin_frame_; 63 bool needs_begin_frame_;
64 bool did_swap_buffer_; 64 bool did_swap_buffer_;
65 65
66 // Only valid (non-NULL) during a DemandDrawSw() call. 66 // Only valid (non-NULL) during a DemandDrawSw() call.
67 SkCanvas* current_sw_canvas_; 67 SkCanvas* current_sw_canvas_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); 69 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface);
70 }; 70 };
71 71
72 } // namespace content 72 } // namespace content
73 73
74 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ 74 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698