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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 gfx::Size GetPhysicalBackingSize() const; | 300 gfx::Size GetPhysicalBackingSize() const; |
301 gfx::Size GetViewportSizeDip() const; | 301 gfx::Size GetViewportSizeDip() const; |
302 gfx::Size GetViewportSizeOffsetDip() const; | 302 gfx::Size GetViewportSizeOffsetDip() const; |
303 float GetOverdrawBottomHeightDip() const; | 303 float GetOverdrawBottomHeightDip() const; |
304 | 304 |
305 void AttachLayer(scoped_refptr<cc::Layer> layer); | 305 void AttachLayer(scoped_refptr<cc::Layer> layer); |
306 void RemoveLayer(scoped_refptr<cc::Layer> layer); | 306 void RemoveLayer(scoped_refptr<cc::Layer> layer); |
307 void AddBeginFrameSubscriber(); | 307 void AddBeginFrameSubscriber(); |
308 void RemoveBeginFrameSubscriber(); | 308 void RemoveBeginFrameSubscriber(); |
309 void SetNeedsAnimate(); | 309 void SetNeedsAnimate(); |
| 310 void PopulateBitmapAsync(gfx::Rect src_subrect, |
| 311 gfx::Size dst_size, |
| 312 bool readback_config_rgb565); |
| 313 bool IsReadBackConfig565(); |
310 | 314 |
311 private: | 315 private: |
312 class ContentViewUserData; | 316 class ContentViewUserData; |
313 | 317 |
314 friend class ContentViewUserData; | 318 friend class ContentViewUserData; |
315 virtual ~ContentViewCoreImpl(); | 319 virtual ~ContentViewCoreImpl(); |
316 | 320 |
317 // NotificationObserver implementation. | 321 // NotificationObserver implementation. |
318 virtual void Observe(int type, | 322 virtual void Observe(int type, |
319 const NotificationSource& source, | 323 const NotificationSource& source, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 | 379 |
376 // The owning window that has a hold of main application activity. | 380 // The owning window that has a hold of main application activity. |
377 ui::WindowAndroid* window_android_; | 381 ui::WindowAndroid* window_android_; |
378 | 382 |
379 // The cache of device's current orientation set from Java side, this value | 383 // The cache of device's current orientation set from Java side, this value |
380 // will be sent to Renderer once it is ready. | 384 // will be sent to Renderer once it is ready. |
381 int device_orientation_; | 385 int device_orientation_; |
382 | 386 |
383 bool geolocation_needs_pause_; | 387 bool geolocation_needs_pause_; |
384 | 388 |
| 389 bool bitmap_config_is_565_; |
| 390 |
385 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 391 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
386 }; | 392 }; |
387 | 393 |
388 bool RegisterContentViewCore(JNIEnv* env); | 394 bool RegisterContentViewCore(JNIEnv* env); |
389 | 395 |
390 } // namespace content | 396 } // namespace content |
391 | 397 |
392 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 398 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |