Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 301 gfx::Size GetPhysicalBackingSize() const; | 301 gfx::Size GetPhysicalBackingSize() const; |
| 302 gfx::Size GetViewportSizeDip() const; | 302 gfx::Size GetViewportSizeDip() const; |
| 303 gfx::Size GetViewportSizeOffsetDip() const; | 303 gfx::Size GetViewportSizeOffsetDip() const; |
| 304 float GetOverdrawBottomHeightDip() const; | 304 float GetOverdrawBottomHeightDip() const; |
| 305 | 305 |
| 306 void AttachLayer(scoped_refptr<cc::Layer> layer); | 306 void AttachLayer(scoped_refptr<cc::Layer> layer); |
| 307 void RemoveLayer(scoped_refptr<cc::Layer> layer); | 307 void RemoveLayer(scoped_refptr<cc::Layer> layer); |
| 308 void AddBeginFrameSubscriber(); | 308 void AddBeginFrameSubscriber(); |
| 309 void RemoveBeginFrameSubscriber(); | 309 void RemoveBeginFrameSubscriber(); |
| 310 void SetNeedsAnimate(); | 310 void SetNeedsAnimate(); |
| 311 void PopulateBitmapAsync(gfx::Rect src_subrect, | |
| 312 gfx::Size dst_size, | |
| 313 bool readback_config_rgb565); | |
|
no sievers
2014/01/07 16:26:02
Adding this here is unnecessary since ContentViewC
sivag
2014/01/09 14:51:50
Removed.
| |
| 314 bool IsReadBackConfig565(); | |
|
no sievers
2014/01/07 16:26:02
Same for this. It should be in the same place and
sivag
2014/01/09 14:51:50
Removed.Argument added to CopyFromCompositingSurfa
| |
| 311 | 315 |
| 312 private: | 316 private: |
| 313 class ContentViewUserData; | 317 class ContentViewUserData; |
| 314 | 318 |
| 315 friend class ContentViewUserData; | 319 friend class ContentViewUserData; |
| 316 virtual ~ContentViewCoreImpl(); | 320 virtual ~ContentViewCoreImpl(); |
| 317 | 321 |
| 318 // NotificationObserver implementation. | 322 // NotificationObserver implementation. |
| 319 virtual void Observe(int type, | 323 virtual void Observe(int type, |
| 320 const NotificationSource& source, | 324 const NotificationSource& source, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 376 | 380 |
| 377 // The owning window that has a hold of main application activity. | 381 // The owning window that has a hold of main application activity. |
| 378 ui::WindowAndroid* window_android_; | 382 ui::WindowAndroid* window_android_; |
| 379 | 383 |
| 380 // The cache of device's current orientation set from Java side, this value | 384 // The cache of device's current orientation set from Java side, this value |
| 381 // will be sent to Renderer once it is ready. | 385 // will be sent to Renderer once it is ready. |
| 382 int device_orientation_; | 386 int device_orientation_; |
| 383 | 387 |
| 384 bool geolocation_needs_pause_; | 388 bool geolocation_needs_pause_; |
| 385 | 389 |
| 390 bool bitmap_config_is_565_; | |
| 391 | |
| 386 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 392 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 387 }; | 393 }; |
| 388 | 394 |
| 389 bool RegisterContentViewCore(JNIEnv* env); | 395 bool RegisterContentViewCore(JNIEnv* env); |
| 390 | 396 |
| 391 } // namespace content | 397 } // namespace content |
| 392 | 398 |
| 393 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 399 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |